diff options
| -rw-r--r-- | lisp/desktop.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/desktop.el b/lisp/desktop.el index 0ea2704e5f5..a214a36ead8 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -221,8 +221,10 @@ QUOTE may be `may' (value may be quoted), | |||
| 221 | ((or (numberp val) (null val) (eq t val)) | 221 | ((or (numberp val) (null val) (eq t val)) |
| 222 | (cons 'may (prin1-to-string val))) | 222 | (cons 'may (prin1-to-string val))) |
| 223 | ((stringp val) | 223 | ((stringp val) |
| 224 | ;; Get rid of text properties because we cannot read them | 224 | (let ((copy (copy-sequence val))) |
| 225 | (cons 'may (prin1-to-string (format "%s" val)))) | 225 | (set-text-properties 0 (length copy) nil copy) |
| 226 | ;; Get rid of text properties because we cannot read them | ||
| 227 | (cons 'may (prin1-to-string copy)))) | ||
| 226 | ((symbolp val) | 228 | ((symbolp val) |
| 227 | (cons 'must (prin1-to-string val))) | 229 | (cons 'must (prin1-to-string val))) |
| 228 | ((vectorp val) | 230 | ((vectorp val) |