diff options
| author | Dave Love | 2000-03-01 19:05:05 +0000 |
|---|---|---|
| committer | Dave Love | 2000-03-01 19:05:05 +0000 |
| commit | eab5a18b56628bd19def63ede4c50aa8f4512a4b (patch) | |
| tree | 5cad6d6f028d3011b0c6c9270ae11d8e169b1781 | |
| parent | 2df636f443a7dc7981e70e08d090f77b71508fe3 (diff) | |
| download | emacs-eab5a18b56628bd19def63ede4c50aa8f4512a4b.tar.gz emacs-eab5a18b56628bd19def63ede4c50aa8f4512a4b.zip | |
(list-faces-display): Supply help-echo with
help-make-xrefs.
| -rw-r--r-- | lisp/faces.el | 6 |
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. |