summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-07-15 18:29:27 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-07-15 18:29:27 +0200
commit22a5482ab699973e286d7dceb20fe469c94533dd (patch)
treefb89136ff4b6cb55ed01717ba10b139eecf9359c /lisp/help-fns.el
parentceecac4c79df85a523a8a6bb3ace78105ff0ffe8 (diff)
downloademacs-22a5482ab699973e286d7dceb20fe469c94533dd.tar.gz
Improve the shortdoc link action in *Help* buffers
* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Allow taking an optional parameter to place point on a specific function. (shortdoc--display-function): Go to the function in question in the shortdoc buffer.
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index afdb0d17b26..d3fdb47a348 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -752,7 +752,7 @@ 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 object))
'follow-link t
'help-echo (purecopy "mouse-1, RET: show documentation group")))
groups)