diff options
author | Daniel MartÃn <mardani29@yahoo.es> | 2021-01-10 13:45:44 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-01-10 13:45:44 +0100 |
commit | e62f71988f8e75de676ea5e0775c97eab1d8793a (patch) | |
tree | 356e5c3189a775e342bffffac632ef71a9e5d01d /lisp/help-fns.el | |
parent | 14a1a84a33a500d49ce23124f549ff28bd007f41 (diff) | |
download | emacs-e62f71988f8e75de676ea5e0775c97eab1d8793a.tar.gz emacs-e62f71988f8e75de676ea5e0775c97eab1d8793a.tar.bz2 emacs-e62f71988f8e75de676ea5e0775c97eab1d8793a.zip |
Minor shortdoc link improvements
* lisp/emacs-lisp/shortdoc.el (shortdoc--display-function): Use
describe-function as a fallback link when a function is not documented
in any Info manual. Also make the link respond to mouse-1, like the
rest of *Help* links, and add a proper help-echo property.
* lisp/help-fns.el (help-fns--mention-shortdoc-groups): Same link
improvement as described before, this time for the shortdoc groups
(bug#45750).
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r-- | lisp/help-fns.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index afbb5e3649e..d559221a827 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -713,7 +713,9 @@ FILE is the file where FUNCTION was probably defined." (insert-text-button (symbol-name group) 'action (lambda (_) - (shortdoc-display-group group)))) + (shortdoc-display-group group)) + 'follow-link t + 'help-echo (purecopy "mouse-1, RET: show documentation group"))) groups) (insert (if (= (length groups) 1) " group.\n" |