]> git.eshelyaron.com Git - emacs.git/commitdiff
(widget-sexp-value-to-internal):
authorRichard M. Stallman <rms@gnu.org>
Sat, 31 May 1997 01:22:39 +0000 (01:22 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 31 May 1997 01:22:39 +0000 (01:22 +0000)
Don't bother with pp for a symbol.

lisp/wid-edit.el

index 9198ceed8e883afb8863e983ced026d11eeb1405..561c7efb42bfe34788d3e1ffc47013edff8f1fa2 100644 (file)
@@ -2637,7 +2637,9 @@ It will read a directory name from the minibuffer when invoked."
 
 (defun widget-sexp-value-to-internal (widget value)
   ;; Use pp for printer representation.
-  (let ((pp (pp-to-string value)))
+  (let ((pp (if (symbolp value)
+               (prin1-to-string value)
+             (pp-to-string value))))
     (while (string-match "\n\\'" pp)
       (setq pp (substring pp 0 -1)))
     (if (or (string-match "\n\\'" pp)