aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-05-01 00:45:39 +0200
committerLars Ingebrigtsen2016-05-01 00:45:39 +0200
commitd0b0cd667129c3ea8ea834f1a28a994453144cb2 (patch)
tree4a66ec2d6acbf29b6e8ebdb79673acb1b7dce182
parent28aaa6d20586e3330a23b017a65e56dd6461c003 (diff)
downloademacs-d0b0cd667129c3ea8ea834f1a28a994453144cb2.tar.gz
emacs-d0b0cd667129c3ea8ea834f1a28a994453144cb2.zip
Make the legend in describe-categories a link
* lisp/help-fns.el (describe-categories): Make the "see bottom" text a link (bug#22227).
-rw-r--r--lisp/help-fns.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index e17586c28fe..040152a2c9f 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1109,7 +1109,13 @@ BUFFER should be a buffer or a buffer name."
1109 (if (or (not (vectorp docs)) (/= (length docs) 95)) 1109 (if (or (not (vectorp docs)) (/= (length docs) 95))
1110 (error "Invalid first extra slot in this category table\n")) 1110 (error "Invalid first extra slot in this category table\n"))
1111 (with-current-buffer standard-output 1111 (with-current-buffer standard-output
1112 (insert "Legend of category mnemonics (see the tail for the longer description)\n") 1112 (setq-default help-button-cache (make-marker))
1113 (insert "Legend of category mnemonics ")
1114 (insert-button "(longer descriptions at the bottom)"
1115 'action help-button-cache
1116 'follow-link t
1117 'help-echo "mouse-2, RET: show full legend")
1118 (insert "\n")
1113 (let ((pos (point)) (items 0) lines n) 1119 (let ((pos (point)) (items 0) lines n)
1114 (dotimes (i 95) 1120 (dotimes (i 95)
1115 (if (aref docs i) (setq items (1+ items)))) 1121 (if (aref docs i) (setq items (1+ items))))
@@ -1136,6 +1142,7 @@ BUFFER should be a buffer or a buffer name."
1136 "character(s)\tcategory mnemonics\n" 1142 "character(s)\tcategory mnemonics\n"
1137 "------------\t------------------") 1143 "------------\t------------------")
1138 (describe-vector table 'help-describe-category-set) 1144 (describe-vector table 'help-describe-category-set)
1145 (set-marker help-button-cache (point))
1139 (insert "Legend of category mnemonics:\n") 1146 (insert "Legend of category mnemonics:\n")
1140 (dotimes (i 95) 1147 (dotimes (i 95)
1141 (let ((elt (aref docs i))) 1148 (let ((elt (aref docs i)))