aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/help.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el
index e65982623c1..76fc43d63ef 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -611,6 +611,7 @@ pass a string or a vector.
611If non-nil UNTRANSLATED is a vector of the untranslated events. 611If non-nil UNTRANSLATED is a vector of the untranslated events.
612It can also be a number in which case the untranslated events from 612It can also be a number in which case the untranslated events from
613the last key hit are used." 613the last key hit are used."
614 ;; UP-EVENT is the up-event that was discarded by reading KEY, or nil.
614 (interactive "kDescribe key: \np\nU") 615 (interactive "kDescribe key: \np\nU")
615 (if (numberp untranslated) 616 (if (numberp untranslated)
616 (setq untranslated (this-single-command-raw-keys))) 617 (setq untranslated (this-single-command-raw-keys)))
@@ -634,7 +635,8 @@ the last key hit are used."
634 ;; Don't bother user with strings from (e.g.) the select-paste menu. 635 ;; Don't bother user with strings from (e.g.) the select-paste menu.
635 (if (stringp (aref key (1- (length key)))) 636 (if (stringp (aref key (1- (length key))))
636 (aset key (1- (length key)) "(any string)")) 637 (aset key (1- (length key)) "(any string)"))
637 (if (stringp (aref untranslated (1- (length untranslated)))) 638 (if (and untranslated
639 (stringp (aref untranslated (1- (length untranslated)))))
638 (aset untranslated (1- (length untranslated)) 640 (aset untranslated (1- (length untranslated))
639 "(any string)")) 641 "(any string)"))
640 (with-output-to-temp-buffer (help-buffer) 642 (with-output-to-temp-buffer (help-buffer)