diff options
| author | Richard M. Stallman | 2005-04-10 01:47:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-04-10 01:47:43 +0000 |
| commit | 36178ae8fb086e8ece1ca9408dfa18a2fe9e82ba (patch) | |
| tree | 88cd35d4a102c9d6e5dfb629b2fb6cd4251e18a7 | |
| parent | 18e2d91f52853c5e62d5f34e4f4238056d31a53b (diff) | |
| download | emacs-36178ae8fb086e8ece1ca9408dfa18a2fe9e82ba.tar.gz emacs-36178ae8fb086e8ece1ca9408dfa18a2fe9e82ba.zip | |
(describe-key-briefly, describe-key): Replace
strings as event types with "(any string)".
| -rw-r--r-- | lisp/help.el | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el index aeffaf732a5..a3e14014b79 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -586,7 +586,15 @@ the last key hit are used." | |||
| 586 | ;; Ok, now look up the key and name the command. | 586 | ;; Ok, now look up the key and name the command. |
| 587 | (let ((defn (or (string-key-binding key) | 587 | (let ((defn (or (string-key-binding key) |
| 588 | (key-binding key))) | 588 | (key-binding key))) |
| 589 | (key-desc (help-key-description key untranslated))) | 589 | key-desc) |
| 590 | ;; Don't bother user with strings from (e.g.) the select-paste menu. | ||
| 591 | (if (stringp (aref key (1- (length key)))) | ||
| 592 | (aset key (1- (length key)) "(any string)")) | ||
| 593 | (if (stringp (aref untranslated (1- (length untranslated)))) | ||
| 594 | (aset untranslated (1- (length untranslated)) | ||
| 595 | "(any string)")) | ||
| 596 | ;; Now describe the key, perhaps as changed. | ||
| 597 | (setq key-desc (help-key-description key untranslated)) | ||
| 590 | (if (or (null defn) (integerp defn) (equal defn 'undefined)) | 598 | (if (or (null defn) (integerp defn) (equal defn 'undefined)) |
| 591 | (princ (format "%s is undefined" key-desc)) | 599 | (princ (format "%s is undefined" key-desc)) |
| 592 | (princ (format (if (windowp window) | 600 | (princ (format (if (windowp window) |
| @@ -623,6 +631,12 @@ the last key hit are used." | |||
| 623 | (if (or (null defn) (integerp defn) (equal defn 'undefined)) | 631 | (if (or (null defn) (integerp defn) (equal defn 'undefined)) |
| 624 | (message "%s is undefined" (help-key-description key untranslated)) | 632 | (message "%s is undefined" (help-key-description key untranslated)) |
| 625 | (help-setup-xref (list #'describe-function defn) (interactive-p)) | 633 | (help-setup-xref (list #'describe-function defn) (interactive-p)) |
| 634 | ;; Don't bother user with strings from (e.g.) the select-paste menu. | ||
| 635 | (if (stringp (aref key (1- (length key)))) | ||
| 636 | (aset key (1- (length key)) "(any string)")) | ||
| 637 | (if (stringp (aref untranslated (1- (length untranslated)))) | ||
| 638 | (aset untranslated (1- (length untranslated)) | ||
| 639 | "(any string)")) | ||
| 626 | (with-output-to-temp-buffer (help-buffer) | 640 | (with-output-to-temp-buffer (help-buffer) |
| 627 | (princ (help-key-description key untranslated)) | 641 | (princ (help-key-description key untranslated)) |
| 628 | (if (windowp window) | 642 | (if (windowp window) |