mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(desktop-internal-v2s): Don't use format to eliminate text properties.
This commit is contained in:
parent
fb11ccf66d
commit
95bf6435fc
1 changed files with 4 additions and 2 deletions
|
|
@ -221,8 +221,10 @@ QUOTE may be `may' (value may be quoted),
|
|||
((or (numberp val) (null val) (eq t val))
|
||||
(cons 'may (prin1-to-string val)))
|
||||
((stringp val)
|
||||
;; Get rid of text properties because we cannot read them
|
||||
(cons 'may (prin1-to-string (format "%s" val))))
|
||||
(let ((copy (copy-sequence val)))
|
||||
(set-text-properties 0 (length copy) nil copy)
|
||||
;; Get rid of text properties because we cannot read them
|
||||
(cons 'may (prin1-to-string copy))))
|
||||
((symbolp val)
|
||||
(cons 'must (prin1-to-string val)))
|
||||
((vectorp val)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue