mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-24 10:38:38 +00:00
(widget-sexp-value-to-internal):
Don't bother with pp for a symbol.
This commit is contained in:
parent
ddc90f39b0
commit
6d1ab9d4d6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user