[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scratch/pkg ce676d84d34: describe-variable: read-from-string

From: Gerd Moellmann
Subject: scratch/pkg ce676d84d34: describe-variable: read-from-string
Date: Wed, 13 Dec 2023 01:25:35 -0500 (EST)

branch: scratch/pkg
commit ce676d84d34a58537995504293f139cc62079915
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>

    describe-variable: read-from-string
    * lisp/help-fns.el (describe-variable):
    Bind symbol-packages when reading from string.
 lisp/help-fns.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index b1489c0086a..b97d4271f4a 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1284,7 +1284,9 @@ it is displayed along with the global value."
                 t nil nil
                 (if (symbolp v) (symbol-name v))))
      (list (if (equal val "")
-              v (car (read-from-string val))))))
+              v
+            (let ((symbol-packages t))
+              (car (read-from-string val)))))))
   (let (file-name
         (help-buffer-under-preparation t))
     (unless (buffer-live-p buffer) (setq buffer (current-buffer)))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]