core-editor (doom|unpropertize-savehist): add type test
This commit is contained in:
parent
7b5ecc824b
commit
5c8d6993e0
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@
|
||||||
;; Remove text-property cruft from history
|
;; Remove text-property cruft from history
|
||||||
(defun doom|unpropertize-savehist ()
|
(defun doom|unpropertize-savehist ()
|
||||||
(mapc (lambda (sym)
|
(mapc (lambda (sym)
|
||||||
(when (boundp sym)
|
(when (and (boundp sym) (listp (symbol-value sym)))
|
||||||
(setf (symbol-value sym) (mapcar 'substring-no-properties (symbol-value sym)))))
|
(setf (symbol-value sym) (mapcar 'substring-no-properties (symbol-value sym)))))
|
||||||
'(kill-ring minibuffer-history helm-grep-history helm-ff-history
|
'(kill-ring minibuffer-history helm-grep-history helm-ff-history
|
||||||
file-name-history read-expression-history extended-command-history
|
file-name-history read-expression-history extended-command-history
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue