core-editor (doom|unpropertize-savehist): add type test

This commit is contained in:
Henrik Lissner 2017-02-20 12:04:51 -05:00
parent 7b5ecc824b
commit 5c8d6993e0

View File

@ -51,7 +51,7 @@
;; Remove text-property cruft from history
(defun doom|unpropertize-savehist ()
(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)))))
'(kill-ring minibuffer-history helm-grep-history helm-ff-history
file-name-history read-expression-history extended-command-history