]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix describe-variable on values with circular syntax (Bug#39805)
authorNoam Postavsky <npostavs@gmail.com>
Fri, 28 Feb 2020 02:09:59 +0000 (21:09 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 4 Mar 2020 03:04:48 +0000 (22:04 -0500)
* lisp/help-fns.el (describe-variable): Set syntax tables before
calling pp-buffer.

lisp/help-fns.el

index 0e2ae6b3c3c1d75bbfd846535f632fac55c2c6de..1be8e0ab0823609d6c1b4d0aaee03c49c753a29a 100644 (file)
@@ -1000,6 +1000,8 @@ it is displayed along with the global value."
                    (terpri)
                     (let ((buf (current-buffer)))
                       (with-temp-buffer
+                        (lisp-mode-variables nil)
+                        (set-syntax-table emacs-lisp-mode-syntax-table)
                         (insert print-rep)
                         (pp-buffer)
                         (let ((pp-buffer (current-buffer)))