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:
parent
cae0700001
commit
95d5e396e2
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue