; Improve documentation of 'shortdoc'

* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Fix doc
string and wording of prompt.  (Bug#76723)
This commit is contained in:
Eli Zaretskii 2025-03-04 16:01:32 +02:00
parent d6288eeb42
commit 0383937a70

View file

@ -1468,10 +1468,12 @@ A FUNC form can have any number of `:no-eval' (or `:no-value'),
;;;###autoload
(defun shortdoc-display-group (group &optional function same-window)
"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: "
(mapcar #'car shortdoc--groups))))
(interactive (list (completing-read
"Group of functions for which to show summary: "
(mapcar #'car shortdoc--groups))))
(when (stringp group)
(setq group (intern group)))
(unless (assq group shortdoc--groups)