From: Noam Postavsky Date: Fri, 28 Feb 2020 02:09:59 +0000 (-0500) Subject: Fix describe-variable on values with circular syntax (Bug#39805) X-Git-Tag: emacs-27.0.91~136 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7cafbbe96434ef616abfef364d82f7250bffc1ed;p=emacs.git Fix describe-variable on values with circular syntax (Bug#39805) * lisp/help-fns.el (describe-variable): Set syntax tables before calling pp-buffer. --- diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 0e2ae6b3c3c..1be8e0ab082 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -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)))