aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-03-01 19:05:05 +0000
committerDave Love2000-03-01 19:05:05 +0000
commiteab5a18b56628bd19def63ede4c50aa8f4512a4b (patch)
tree5cad6d6f028d3011b0c6c9270ae11d8e169b1781
parent2df636f443a7dc7981e70e08d090f77b71508fe3 (diff)
downloademacs-eab5a18b56628bd19def63ede4c50aa8f4512a4b.tar.gz
emacs-eab5a18b56628bd19def63ede4c50aa8f4512a4b.zip
(list-faces-display): Supply help-echo with
help-make-xrefs.
-rw-r--r--lisp/faces.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index c719b0a2f87..4bdc107275f 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -985,14 +985,16 @@ The sample text is a string that comes from the variable
985 (save-excursion 985 (save-excursion
986 (save-match-data 986 (save-match-data
987 (search-backward face-name) 987 (search-backward face-name)
988 (help-xref-button 0 #'customize-face face-name))) 988 (help-xref-button 0 #'customize-face face-name
989 "mouse-2: customize this face")))
989 (let ((beg (point))) 990 (let ((beg (point)))
990 (insert list-faces-sample-text) 991 (insert list-faces-sample-text)
991 ;; Hyperlink to a help buffer for the face. 992 ;; Hyperlink to a help buffer for the face.
992 (save-excursion 993 (save-excursion
993 (save-match-data 994 (save-match-data
994 (search-backward list-faces-sample-text) 995 (search-backward list-faces-sample-text)
995 (help-xref-button 0 #'describe-face face))) 996 (help-xref-button 0 #'describe-face face
997 "mouse-2: describe this face")))
996 (insert "\n") 998 (insert "\n")
997 (put-text-property beg (1- (point)) 'face face) 999 (put-text-property beg (1- (point)) 'face face)
998 ;; If the sample text has multiple lines, line up all of them. 1000 ;; If the sample text has multiple lines, line up all of them.