From: Lars Ingebrigtsen Date: Sun, 11 Oct 2020 10:05:55 +0000 (+0200) Subject: Autoload shortdoc command and adjust NEWS X-Git-Tag: emacs-28.0.90~5683 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e441a25daaf785305b77bff8aae666ea21fb3107;p=emacs.git Autoload shortdoc command and adjust NEWS * lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Autoload. --- diff --git a/etc/NEWS b/etc/NEWS index 3166eb22a6c..cc8733c2c07 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -87,7 +87,7 @@ useful on systems such as FreeBSD which ships only with "etc/termcap". +++ *** A new system for displaying documentation for groups of function is added. -This can either be used by saying 'M-x short-documentation-group' and +This can either be used by saying 'M-x shortdoc-display-group' and choosing a group, or clicking a button in the *Help* buffers when looking at the doc string of a function that belongs to one of these groups. diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el index cabf026cd0e..e2e5c0f5732 100644 --- a/lisp/emacs-lisp/shortdoc.el +++ b/lisp/emacs-lisp/shortdoc.el @@ -935,6 +935,7 @@ There can be any number of :example/:result elements." (sqrt :eval (sqrt -1))) +;;;###autoload (defun shortdoc-display-group (group) "Pop to a buffer and display short documentation for functions in GROUP." (interactive (list (completing-read "Show functions in: "