From: Lars Ingebrigtsen Date: Sun, 26 Jun 2022 19:41:42 +0000 (+0200) Subject: Font-lock variable values in *Help* X-Git-Tag: emacs-29.0.90~1447^2~1438 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=19c44e2be30a2549db446308a128acdff4686c28;p=emacs.git Font-lock variable values in *Help* * lisp/help-fns.el (describe-variable): Font-lock the variable value (bug#47363). --- 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)))))