diff options
| author | Richard M. Stallman | 1995-02-17 23:22:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-02-17 23:22:51 +0000 |
| commit | 95bf6435fc9b151b931173011a5a0f2a90bd4d0e (patch) | |
| tree | ab5480a63492013cb103c2d1cc600c354667b2bf | |
| parent | fb11ccf66db483b9f81900794d093a1083a5afb0 (diff) | |
| download | emacs-95bf6435fc9b151b931173011a5a0f2a90bd4d0e.tar.gz emacs-95bf6435fc9b151b931173011a5a0f2a90bd4d0e.zip | |
(desktop-internal-v2s): Don't use format to eliminate text properties.
| -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) |