summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-05-06 16:21:07 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-05-06 16:21:07 +0200
commit1cda7cfb390c9612caf73e977d64d9e0eff5735c (patch)
treec64b6b909f72d974abcbfdc3ef95865f7b613ba1 /lisp/help-fns.el
parentafc14e4f661194969ef1622e2d9310cfbf662aff (diff)
downloademacs-1cda7cfb390c9612caf73e977d64d9e0eff5735c.tar.gz
emacs-1cda7cfb390c9612caf73e977d64d9e0eff5735c.tar.bz2
emacs-1cda7cfb390c9612caf73e977d64d9e0eff5735c.zip
Respect help-window-keep-selected in shortdoc buttons
* lisp/help-fns.el (help-fns--mention-shortdoc-groups): Respect help-window-keep-selected. * lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Allow reusing the window.
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 0cb2c6d5d77..927a4f0d2c4 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -837,7 +837,8 @@ the C sources, too."
(insert-text-button
(symbol-name group)
'action (lambda (_)
- (shortdoc-display-group group object))
+ (shortdoc-display-group group object
+ help-window-keep-selected))
'follow-link t
'help-echo (purecopy "mouse-1, RET: show documentation group")))
groups)