]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix help-customize in describe-symbol buffers
authorDmitry Gutov <dmitry@gutov.dev>
Mon, 14 Apr 2025 00:34:42 +0000 (03:34 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 16 Apr 2025 07:34:06 +0000 (09:34 +0200)
* lisp/help-fns.el (describe-symbol):
Protect help-mode--current-data from being modified inside the
help-setup-xref call (bug#77510).

(cherry picked from commit f7e34d52dcc175f3205e308ab57e83d7b0515792)

lisp/help-fns.el

index 0fd5859428938116169683c320db90bf29dc2772..2ea4735dccd675b771c4dc0704b6b812be16cc2c 100644 (file)
@@ -2027,7 +2027,8 @@ current buffer and the selected frame, respectively."
         (unless single
           ;; Don't record the `describe-variable' item in the stack.
           (setq help-xref-stack-item nil)
-          (help-setup-xref (list #'describe-symbol symbol) nil))
+          (let ((help-mode--current-data help-mode--current-data))
+            (help-setup-xref (list #'describe-symbol symbol) nil)))
         (goto-char (point-max))
         (help-xref--navigation-buttons)
         (goto-char (point-min))))))