aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1996-05-04 00:50:49 +0000
committerRichard M. Stallman <[email protected]>1996-05-04 00:50:49 +0000
commit82fbaa5ef2397f49ccd4c1aa42d4b7835ad66694 (patch)
tree3ebead8653b5d80f2f145ae8a1a7bf1a0e627839
parente827bc372f024900ec596b62f63c562025f66888 (diff)
(apropos-print): If command has no key bindings, say how to run it with M-x.
-rw-r--r--lisp/apropos.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el
index 8ebddb9bd5..df8dc9305a 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -493,7 +493,14 @@ found."
key))
key)
item ", "))
- (insert "(not bound to any keys)")))
+ (insert "Type ")
+ (insert "M-x")
+ (put-text-property (- (point) 3) (point)
+ 'face apropos-keybinding-face)
+ (insert " " (symbol-name symbol) " ")
+ (insert "RET")
+ (put-text-property (- (point) 3) (point)
+ 'face apropos-keybinding-face)))
(terpri)
;; only now so we don't propagate text attributes all over
(put-text-property point1 point2 'item