aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-13 21:47:50 +0000
committerRichard M. Stallman1994-10-13 21:47:50 +0000
commite2247420b1b4f6f4cd68c563b1936e698986c052 (patch)
tree680f0d8caeada4dae6bb66d2fde10f07f45c3f7c
parentf8a0e364daf88d3ebf5e41c2977e2219f4b2e97d (diff)
downloademacs-e2247420b1b4f6f4cd68c563b1936e698986c052.tar.gz
emacs-e2247420b1b4f6f4cd68c563b1936e698986c052.zip
(desktop-internal-v2s): Remove all text properties from strings.
-rw-r--r--lisp/desktop.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/desktop.el b/lisp/desktop.el
index 2e12ac34e7a..a9fc0e226f1 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -216,8 +216,11 @@ the like shorter.")
216and evaluated yields value. quote may be 'may (value may be quoted), 216and evaluated yields value. quote may be 'may (value may be quoted),
217'must (values must be quoted), or nil (value may not be quoted)." 217'must (values must be quoted), or nil (value may not be quoted)."
218 (cond 218 (cond
219 ((or (numberp val) (stringp val) (null val) (eq t val)) 219 ((or (numberp val) (null val) (eq t val))
220 (cons 'may (prin1-to-string val))) 220 (cons 'may (prin1-to-string val)))
221 ((stringp val)
222 ;; Get rid of text properties because we cannot read them
223 (cons 'may (prin1-to-string (format "%s" val))))
221 ((symbolp val) 224 ((symbolp val)
222 (cons 'must (prin1-to-string val))) 225 (cons 'must (prin1-to-string val)))
223 ((vectorp val) 226 ((vectorp val)
@@ -448,10 +451,10 @@ autoloaded files."
448(defun desktop-buffer-rmail () "Load an RMAIL file." 451(defun desktop-buffer-rmail () "Load an RMAIL file."
449 (if (eq 'rmail-mode mam) 452 (if (eq 'rmail-mode mam)
450 (condition-case error 453 (condition-case error
451 (progn (rmail-input fn) t) 454 (progn (rmail-input fn) t)
452 (file-locked 455 (file-locked
453 (kill-buffer (current-buffer)) 456 (kill-buffer (current-buffer))
454 'ignored)))) 457 'ignored))))
455;; ---------------------------------------------------------------------------- 458;; ----------------------------------------------------------------------------
456(defun desktop-buffer-mh () "Load a folder in the mh system." 459(defun desktop-buffer-mh () "Load a folder in the mh system."
457 (if (eq 'mh-folder-mode mam) 460 (if (eq 'mh-folder-mode mam)