1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Stricter check for string value in savehist-printable

Fixes: debbugs:10937
This commit is contained in:
Leo Liu 2012-03-10 02:09:46 +08:00
parent cae0700001
commit 95d5e396e2
2 changed files with 8 additions and 1 deletions

View file

@ -369,9 +369,11 @@ trimming of history lists to `history-length' items."
"Return non-nil if VALUE is printable."
(cond
;; Quick response for oft-encountered types known to be printable.
((stringp value))
((numberp value))
((symbolp value))
;; String without properties
((and (stringp value)
(equal-including-properties value (substring-no-properties value))))
(t
;; For others, check explicitly.
(with-temp-buffer