aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2008-07-31 22:15:18 +0000
committerChong Yidong2008-07-31 22:15:18 +0000
commit60f4c0c8bab711e474a63f763d227248b35c2df4 (patch)
tree5bfdb82bdf0a62ed55798c03807755dedf76a4a9
parent45c041650b1b3f0e21fc343a9e71dbf05aa5c4d5 (diff)
downloademacs-60f4c0c8bab711e474a63f763d227248b35c2df4.tar.gz
emacs-60f4c0c8bab711e474a63f763d227248b35c2df4.zip
(apropos-symbol): Don't set button skip by default.
(apropos-print): Set button skip iff searching for multiple types. (apropos-print-doc): Insert blank label button when searching for a single type.
-rw-r--r--lisp/apropos.el17
1 files changed, 11 insertions, 6 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el
index a56cd4218e3..0f00d2d3617 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -179,8 +179,7 @@ term, and the rest of the words are alternative terms.")
179 'face apropos-symbol-face 179 'face apropos-symbol-face
180 'help-echo "mouse-2, RET: Display more help on this symbol" 180 'help-echo "mouse-2, RET: Display more help on this symbol"
181 'follow-link t 181 'follow-link t
182 'action #'apropos-symbol-button-display-help 182 'action #'apropos-symbol-button-display-help)
183 'skip t)
184 183
185(defun apropos-symbol-button-display-help (button) 184(defun apropos-symbol-button-display-help (button)
186 "Display further help for the `apropos-symbol' button BUTTON." 185 "Display further help for the `apropos-symbol' button BUTTON."
@@ -980,6 +979,7 @@ If non-nil TEXT is a string that will be printed as a heading."
980 (cons nil (cdr apropos-item))))) 979 (cons nil (cdr apropos-item)))))
981 (insert-text-button (symbol-name symbol) 980 (insert-text-button (symbol-name symbol)
982 'type 'apropos-symbol 981 'type 'apropos-symbol
982 'skip apropos-multi-type
983 ;; Can't use default, since user may have 983 ;; Can't use default, since user may have
984 ;; changed the variable! 984 ;; changed the variable!
985 ;; Just say `no' to variables containing faces! 985 ;; Just say `no' to variables containing faces!
@@ -1068,9 +1068,14 @@ If non-nil TEXT is a string that will be printed as a heading."
1068 (if apropos-compact-layout 1068 (if apropos-compact-layout
1069 (insert (propertize "\t" 'display '(space :align-to 32)) " ") 1069 (insert (propertize "\t" 'display '(space :align-to 32)) " ")
1070 (insert " ")) 1070 (insert " "))
1071 ;; If the query is only for a single type, there's 1071 (if (null apropos-multi-type)
1072 ;; no point writing it over and over again. 1072 ;; If the query is only for a single type, there's no point
1073 (when apropos-multi-type 1073 ;; writing it over and over again. Insert a blank button, and
1074 ;; put the 'apropos-label property there (needed by
1075 ;; apropos-symbol-button-display-help).
1076 (insert-text-button
1077 " " 'type type 'skip t
1078 'face 'default 'apropos-symbol (car apropos-item))
1074 (insert-text-button 1079 (insert-text-button
1075 (if apropos-compact-layout 1080 (if apropos-compact-layout
1076 (button-type-get type 'apropos-label) 1081 (button-type-get type 'apropos-label)
@@ -1081,7 +1086,7 @@ If non-nil TEXT is a string that will be printed as a heading."
1081 'face apropos-label-face 1086 'face apropos-label-face
1082 'apropos-symbol (car apropos-item)) 1087 'apropos-symbol (car apropos-item))
1083 (insert (if apropos-compact-layout " " ": "))) 1088 (insert (if apropos-compact-layout " " ": ")))
1084 (insert (if do-keys (substitute-command-keys i) i)) 1089 (insert (if do-keys (substitute-command-keys i) i))
1085 (or (bolp) (terpri)))) 1090 (or (bolp) (terpri))))
1086 1091
1087(defun apropos-follow () 1092(defun apropos-follow ()