[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 7934bad23b 1/2: Fix fontification in describe-key
From: |
Lars Ingebrigtsen |
Subject: |
master 7934bad23b 1/2: Fix fontification in describe-key |
Date: |
Tue, 21 Jun 2022 07:33:16 -0400 (EDT) |
branch: master
commit 7934bad23b248fb7be4669e486cdcb9cb2d6d73e
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Fix fontification in describe-key
* lisp/help.el (describe-key): Use insert instead of princ so that
text properties on the key descriptions survive.
---
lisp/help.el | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/lisp/help.el b/lisp/help.el
index 2d02b22e52..1c46f25338 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -966,16 +966,16 @@ current buffer."
(with-help-window (help-buffer)
(when (> (length info-list) 1)
;; FIXME: Make this into clickable hyperlinks.
- (princ "There were several key-sequences:\n\n")
- (princ (mapconcat (lambda (info)
- (pcase-let ((`(,_seq ,brief-desc ,_defn ,_locus)
- info))
- (concat " " brief-desc)))
- info-list
- "\n"))
+ (insert "There were several key-sequences:\n\n")
+ (insert (mapconcat (lambda (info)
+ (pcase-let ((`(,_seq ,brief-desc ,_defn ,_locus)
+ info))
+ (concat " " brief-desc)))
+ info-list
+ "\n"))
(when (delq nil on-link)
- (princ "\n\nThose are influenced by `mouse-1-click-follows-link'"))
- (princ "\n\nThey're all described below."))
+ (insert "\n\nThose are influenced by
`mouse-1-click-follows-link'"))
+ (insert "\n\nThey're all described below."))
(pcase-dolist (`(,_seq ,brief-desc ,defn ,locus)
info-list)
(when defn
@@ -983,10 +983,10 @@ current buffer."
(with-current-buffer standard-output
(insert "\n\n" (make-separator-line) "\n")))
- (princ brief-desc)
+ (insert brief-desc)
(when locus
- (princ (format " (found in %s)" locus)))
- (princ ", which is ")
+ (insert (format " (found in %s)" locus)))
+ (insert ", which is ")
(describe-function-1 defn)))))))
(defun search-forward-help-for-help ()