mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
core-editor (doom|unpropertize-savehist): add type test
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user