]> git.eshelyaron.com Git - emacs.git/commitdiff
(apropos-print): If command has no key bindings, say how to run it with M-x.
authorRichard M. Stallman <rms@gnu.org>
Sat, 4 May 1996 00:50:49 +0000 (00:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 4 May 1996 00:50:49 +0000 (00:50 +0000)
lisp/apropos.el

index 8ebddb9bd5cafd840d333fc69a94af1623f0a8f1..df8dc9305a0a405f4885d838ec48d55bdc6e5ffc 100644 (file)
@@ -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