]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix 'help-quick-toggle'
authorEli Zaretskii <eliz@gnu.org>
Sat, 24 Feb 2024 09:59:30 +0000 (11:59 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:51:49 +0000 (18:51 +0100)
* lisp/help.el (help-quick-sections): Fix "kill-region" command.
Add a doc string.  (Bug#69345)

(cherry picked from commit 01ebc95114fe89ef623bc7ebdd3c3e1b9ef06b4e)

lisp/help.el

index bdf1081a1b6477978968a090522d0c374b071ae8..3148e5b5a826281fdd5cbcfeee66c1bba5a837c4 100644 (file)
@@ -151,7 +151,7 @@ buffer.")
     ("Mark & Kill"
      (set-mark-command . "mark")
      (kill-line . "kill line")
-     (kill-ring-save . "kill region")
+     (kill-region . "kill region")
      (yank . "yank")
      (exchange-point-and-mark . "swap"))
     ("Projects"
@@ -165,7 +165,15 @@ buffer.")
      (isearch-forward . "search")
      (isearch-backward . "reverse search")
      (query-replace . "search & replace")
-     (fill-paragraph . "reformat"))))
+     (fill-paragraph . "reformat")))
+  "Data structure for `help-quick'.
+Value should be a list of elements, each element should of the form
+
+  (GROUP-NAME (COMMAND . DESCRIPTION) (COMMAND . DESCRIPTION)...)
+
+where GROUP-NAME is the name of the group of the commands,
+COMMAND is the symbol of a command and DESCRIPTION is its short
+description, 10 to 15 char5acters at most.")
 
 (declare-function prop-match-value "text-property-search" (match))