aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoam Postavsky2020-02-27 21:09:59 -0500
committerNoam Postavsky2020-03-03 22:04:48 -0500
commit7cafbbe96434ef616abfef364d82f7250bffc1ed (patch)
tree4bbe456feaa3ac5da9eb4f45a2c4864c4f2abe3b
parent592b1cfee9f80413290dcd470effa7fa14036df3 (diff)
downloademacs-7cafbbe96434ef616abfef364d82f7250bffc1ed.tar.gz
emacs-7cafbbe96434ef616abfef364d82f7250bffc1ed.zip
Fix describe-variable on values with circular syntax (Bug#39805)
* lisp/help-fns.el (describe-variable): Set syntax tables before calling pp-buffer.
-rw-r--r--lisp/help-fns.el2
1 files changed, 2 insertions, 0 deletions
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."
1000 (terpri) 1000 (terpri)
1001 (let ((buf (current-buffer))) 1001 (let ((buf (current-buffer)))
1002 (with-temp-buffer 1002 (with-temp-buffer
1003 (lisp-mode-variables nil)
1004 (set-syntax-table emacs-lisp-mode-syntax-table)
1003 (insert print-rep) 1005 (insert print-rep)
1004 (pp-buffer) 1006 (pp-buffer)
1005 (let ((pp-buffer (current-buffer))) 1007 (let ((pp-buffer (current-buffer)))