From e441a25daaf785305b77bff8aae666ea21fb3107 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 11 Oct 2020 12:05:55 +0200 Subject: [PATCH] Autoload shortdoc command and adjust NEWS * lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Autoload. --- etc/NEWS | 2 +- lisp/emacs-lisp/shortdoc.el | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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: " -- 2.39.5