comparison lisp/desktop.el @ 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 06fa5b312280
children f7f101a90cd4
comparison
equal deleted inserted replaced
10776:52b3af3cb71a 10777:9f4a9820fea1
219 `must' (values must be quoted), or nil (value may not be quoted)." 219 `must' (values must be quoted), or nil (value may not be quoted)."
220 (cond 220 (cond
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)
229 (let* ((special nil) 231 (let* ((special nil)
230 (pass1 (mapcar 232 (pass1 (mapcar