]> git.eshelyaron.com Git - emacs.git/commitdiff
Font-lock variable values in *Help*
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 26 Jun 2022 19:41:42 +0000 (21:41 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 26 Jun 2022 19:43:05 +0000 (21:43 +0200)
* lisp/help-fns.el (describe-variable): Font-lock the variable
value (bug#47363).

lisp/help-fns.el

index 43855cd6d721b00daebd48b4005306b77b5e2219..364fce4ea64ac183f8cfcf748fd5348e498e626c 100644 (file)
@@ -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)))))