summaryrefslogtreecommitdiff
path: root/lisp/help.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2022-07-21 09:23:27 +0200
committerStefan Kangas <stefan@marxist.se>2022-07-21 09:23:27 +0200
commit5f1023a2ffe7c96027c3eaf23c1cf93cd5c78dfa (patch)
tree8df056cc806d49617ba0a998c84686966b44d619 /lisp/help.el
parent8e71e9b10333ca4405ae6a9aaec68aa6902171ec (diff)
downloademacs-5f1023a2ffe7c96027c3eaf23c1cf93cd5c78dfa.tar.gz
Minor doc fix in search-forward-help-for-help
* lisp/help.el (search-forward-help-for-help): Use command substitution.
Diffstat (limited to 'lisp/help.el')
-rw-r--r--lisp/help.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/help.el b/lisp/help.el
index abe17fa4ce2..d9e553e4e10 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -995,10 +995,11 @@ current buffer."
(defun search-forward-help-for-help ()
"Search forward in the help-for-help window.
-This command is meant to be used after issuing the `C-h C-h' command."
+This command is meant to be used after issuing the \\[help-for-help] command."
(interactive)
(unless (get-buffer help-for-help-buffer-name)
- (error "No %s buffer; use `C-h C-h' first" help-for-help-buffer-name))
+ (error (substitute-command-keys "No %s buffer; use \\[help-for-help] first")
+ help-for-help-buffer-name))
;; Move cursor to the "help window".
(pop-to-buffer help-for-help-buffer-name)
;; Do incremental search forward.