]> code.delx.au - gnu-emacs/blobdiff - lisp/apropos.el
Fix previous change.
[gnu-emacs] / lisp / apropos.el
index ae8a4ad628cb35b93c6bfad84f7e52574e5da794..b9d7e3ff41d40c5aead2136e38b1e772e74d976a 100644 (file)
@@ -860,13 +860,12 @@ If non-nil TEXT is a string that will be printed as a heading."
                                              key))
                       key)
                     item ", "))
-                (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)))
+                (insert "M-x ... RET")
+                (when apropos-keybinding-face
+                  (put-text-property (- (point) 11) (- (point) 8)
+                                     'face apropos-keybinding-face)
+                  (put-text-property (- (point) 3) (point)
+                                     'face apropos-keybinding-face))))
          (terpri)
          (apropos-print-doc 2
                             (if (commandp symbol)