From 5f1023a2ffe7c96027c3eaf23c1cf93cd5c78dfa Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 21 Jul 2022 09:23:27 +0200 Subject: [PATCH] Minor doc fix in search-forward-help-for-help * lisp/help.el (search-forward-help-for-help): Use command substitution. --- lisp/help.el | 5 +++-- 1 file 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. -- 2.39.5