From: Eli Zaretskii Date: Tue, 4 Mar 2025 14:01:32 +0000 (+0200) Subject: ; Improve documentation of 'shortdoc' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=814bbc30f9ea57bae01aba3574c98c462640a7c6;p=emacs.git ; Improve documentation of 'shortdoc' * lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Fix doc string and wording of prompt. (Bug#76723) (cherry picked from commit 0383937a7014934e7a9b3cf0c33c2d1f46e83901) --- diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el index f3e7a02c1bb..91de1aaf6ee 100644 --- a/lisp/emacs-lisp/shortdoc.el +++ b/lisp/emacs-lisp/shortdoc.el @@ -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