diff options
author | Karl Heuer <kwzh@gnu.org> | 1994-04-25 19:55:45 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1994-04-25 19:55:45 +0000 |
commit | e0625aafdc62719ace7329d4ca0ec5d91a081ec7 (patch) | |
tree | a8d23e200bfa101566c1a42a985066a597ac5c92 /lisp/desktop.el | |
parent | fe5c1c7d1b292e01be24996a4fb18c0b2220ddbe (diff) | |
download | emacs-e0625aafdc62719ace7329d4ca0ec5d91a081ec7.tar.gz |
(desktop-internal-v2s): Make structure match docstring.
Diffstat (limited to 'lisp/desktop.el')
-rw-r--r-- | lisp/desktop.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/desktop.el b/lisp/desktop.el index 6b7fe0cf3d6..9bbc8490df2 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el @@ -191,7 +191,7 @@ If the function returns t then the buffer is considered created.") ;; ---------------------------------------------------------------------------- (defun desktop-internal-v2s (val) "Convert VALUE to a pair (quote . txt) where txt is a string that when read -and evaluated yields value. quote may be 'may (value may be quoted), +and evaluated yields value. quote may be 'may (value may be quoted), 'must (values must be quoted), or nil (value may not be quoted)." (cond ((or (numberp val) (stringp val) (null val) (eq t val)) @@ -222,13 +222,13 @@ and evaluated yields value. quote may be 'may (value may be quoted), (cdr-q.txt (desktop-internal-v2s (cdr val)))) (cond ((or (null (car car-q.txt)) (null (car cdr-q.txt))) - (cons nil (concat "(cons " - (if (eq (car car-q.txt) 'must) "'") + (cons nil (concat "(cons " + (if (eq (car car-q.txt) 'must) "'") (cdr car-q.txt) " " - (if (eq (car cdr-q.txt) 'must) "'") + (if (eq (car cdr-q.txt) 'must) "'") (cdr cdr-q.txt) ")"))) ((consp (cdr val)) - (cons 'must (concat "(" (cdr car-q.txt) + (cons 'must (concat "(" (cdr car-q.txt) " " (substring (cdr cdr-q.txt) 1 -1) ")"))) ((null (cdr val)) (cons 'must (concat "(" (cdr car-q.txt) ")"))) @@ -246,7 +246,7 @@ and evaluated yields value. quote may be 'may (value may be quoted), " (list 'lambda '() (list 'set-marker mk " pos " (get-buffer " buf ")))) mk)")))) (t ; save as text - (prin1-to-string (prin1-to-string val))))) + (cons nil (prin1-to-string (prin1-to-string val)))))) (defun desktop-value-to-string (val) "Convert VALUE to a string that when read evaluates to the same value. Not |