diff options
| author | Richard M. Stallman | 1996-05-04 00:50:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-05-04 00:50:49 +0000 |
| commit | 82fbaa5ef2397f49ccd4c1aa42d4b7835ad66694 (patch) | |
| tree | 3ebead8653b5d80f2f145ae8a1a7bf1a0e627839 | |
| parent | e827bc372f024900ec596b62f63c562025f66888 (diff) | |
| download | emacs-82fbaa5ef2397f49ccd4c1aa42d4b7835ad66694.tar.gz emacs-82fbaa5ef2397f49ccd4c1aa42d4b7835ad66694.zip | |
(apropos-print): If command has no key bindings, say how to run it with M-x.
| -rw-r--r-- | lisp/apropos.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el index 8ebddb9bd5c..df8dc9305a0 100644 --- a/lisp/apropos.el +++ b/lisp/apropos.el | |||
| @@ -493,7 +493,14 @@ found." | |||
| 493 | key)) | 493 | key)) |
| 494 | key) | 494 | key) |
| 495 | item ", ")) | 495 | item ", ")) |
| 496 | (insert "(not bound to any keys)"))) | 496 | (insert "Type ") |
| 497 | (insert "M-x") | ||
| 498 | (put-text-property (- (point) 3) (point) | ||
| 499 | 'face apropos-keybinding-face) | ||
| 500 | (insert " " (symbol-name symbol) " ") | ||
| 501 | (insert "RET") | ||
| 502 | (put-text-property (- (point) 3) (point) | ||
| 503 | 'face apropos-keybinding-face))) | ||
| 497 | (terpri) | 504 | (terpri) |
| 498 | ;; only now so we don't propagate text attributes all over | 505 | ;; only now so we don't propagate text attributes all over |
| 499 | (put-text-property point1 point2 'item | 506 | (put-text-property point1 point2 'item |