[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 58fde63: * lisp/help-fns.el (describe-variable): Add quotes to sy
From: |
Juri Linkov |
Subject: |
master 58fde63: * lisp/help-fns.el (describe-variable): Add quotes to symbol value of origval. |
Date: |
Sun, 3 Nov 2019 16:52:30 -0500 (EST) |
branch: master
commit 58fde6362f88e1d943ae033bda31becc67892112
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>
* lisp/help-fns.el (describe-variable): Add quotes to symbol value of
origval.
---
lisp/help-fns.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 235aa9a..14dea7d 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1018,7 +1018,11 @@ it is displayed along with the global value."
(not (equal origval :help-eval-error)))
(princ "\nOriginal value was \n")
(setq from (point))
- (cl-prin1 origval)
+ (if (and (symbolp origval) (not (booleanp origval)))
+ (let* ((rep (cl-prin1-to-string origval))
+ (print-rep (format-message "`%s'" rep)))
+ (insert print-rep))
+ (cl-prin1 origval))
(save-restriction
(narrow-to-region from (point))
(save-excursion (pp-buffer)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 58fde63: * lisp/help-fns.el (describe-variable): Add quotes to symbol value of origval.,
Juri Linkov <=