summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-06-26 21:41:42 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-06-26 21:43:05 +0200
commit19c44e2be30a2549db446308a128acdff4686c28 (patch)
treef4de5b3db2c3c5895e26ee2ec958a523ddaea127 /lisp/help-fns.el
parentf2a5d48e89bc5611c9cc9aeb978faacee32de6c8 (diff)
downloademacs-19c44e2be30a2549db446308a128acdff4686c28.tar.gz
Font-lock variable values in *Help*
* lisp/help-fns.el (describe-variable): Font-lock the variable value (bug#47363).
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 43855cd6d72..364fce4ea64 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1239,10 +1239,11 @@ it is displayed along with the global value."
(terpri)
(let ((buf (current-buffer)))
(with-temp-buffer
- (lisp-mode-variables nil)
+ (lisp-data-mode)
(set-syntax-table emacs-lisp-mode-syntax-table)
(insert print-rep)
(pp-buffer)
+ (font-lock-ensure)
(let ((pp-buffer (current-buffer)))
(with-current-buffer buf
(insert-buffer-substring pp-buffer)))))