]> git.eshelyaron.com Git - emacs.git/commitdiff
; Improve documentation of 'shortdoc'
authorEli Zaretskii <eliz@gnu.org>
Tue, 4 Mar 2025 14:01:32 +0000 (16:01 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Mar 2025 07:02:33 +0000 (08:02 +0100)
* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Fix doc
string and wording of prompt.  (Bug#76723)

(cherry picked from commit 0383937a7014934e7a9b3cf0c33c2d1f46e83901)

lisp/emacs-lisp/shortdoc.el

index f3e7a02c1bb12abec4ce910c6bfb67501114e469..91de1aaf6ee13e59a70243dd22312dbf2a4d727b 100644 (file)
@@ -1607,10 +1607,12 @@ A FUNC form can have any number of `:no-eval' (or `:no-value'),
 ;;;###autoload
 (defun shortdoc-display-group (group &optional function)
   "Pop to a buffer with short documentation summary for functions in GROUP.
+Interactively, prompt for GROUP.
 If FUNCTION is non-nil, place point on the entry for FUNCTION (if any).
 If SAME-WINDOW, don't pop to a new window."
-  (interactive (list (completing-read "Show summary for functions in: "
-                                      shortdoc--groups)))
+  (interactive
+   (list
+    (completing-read "Show summary for functions in group: " shortdoc--groups)))
   (pop-to-buffer (shortdoc-display-group-1 group))
   (goto-char (point-min))
   (when function