]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor doc fix in search-forward-help-for-help
authorStefan Kangas <stefan@marxist.se>
Thu, 21 Jul 2022 07:23:27 +0000 (09:23 +0200)
committerStefan Kangas <stefan@marxist.se>
Thu, 21 Jul 2022 07:23:27 +0000 (09:23 +0200)
* lisp/help.el (search-forward-help-for-help): Use command
substitution.

lisp/help.el

index abe17fa4ce2a876dda14874658ce26d47e7a7e75..d9e553e4e10a3f4079e8b2d013bebedd4b949e09 100644 (file)
@@ -995,10 +995,11 @@ current buffer."
 \f
 (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.