emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 19c44e2be3: Font-lock variable values in *Help*


From: Lars Ingebrigtsen
Subject: master 19c44e2be3: Font-lock variable values in *Help*
Date: Sun, 26 Jun 2022 15:43:11 -0400 (EDT)

branch: master
commit 19c44e2be30a2549db446308a128acdff4686c28
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Font-lock variable values in *Help*
    
    * lisp/help-fns.el (describe-variable): Font-lock the variable
    value (bug#47363).
---
 lisp/help-fns.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 43855cd6d7..364fce4ea6 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)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]