[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customize how xrefs are followed in help-mode?
From: |
Juri Linkov |
Subject: |
Re: Customize how xrefs are followed in help-mode? |
Date: |
Sun, 19 May 2019 22:50:24 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
> From a user's standpoint, I guess what I'd prefer is to be able to give
> a prefix arg to RET when following the button, but I don't see any way
> of passing that arg down, plus there's no good equivalent for the mouse
> click.
To depend on a prefix arg is a good idea.
(defun display-buffer-from-help-p (_buffer-name _action)
(when current-prefix-arg
(with-current-buffer (window-buffer)
(eq major-mode 'help-mode))))
(setq display-buffer-alist '((display-buffer-from-help-p
display-buffer-same-window)))