Fix describe-variable on values with circular syntax (Bug#39805)
* lisp/help-fns.el (describe-variable): Set syntax tables before calling pp-buffer.
This commit is contained in:
parent
592b1cfee9
commit
7cafbbe964
1 changed files with 2 additions and 0 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue