changeset 10777:9f4a9820fea1

(desktop-internal-v2s): Don't use format to eliminate text properties.
author Richard M. Stallman <rms@gnu.org>
date Fri, 17 Feb 1995 23:22:51 +0000
parents 52b3af3cb71a
children ace814499178
files lisp/desktop.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/desktop.el	Fri Feb 17 18:31:47 1995 +0000
+++ b/lisp/desktop.el	Fri Feb 17 23:22:51 1995 +0000
@@ -221,8 +221,10 @@
    ((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)