emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customize how xrefs are followed in help-mode?


From: Eric Abrahamsen
Subject: Re: Customize how xrefs are followed in help-mode?
Date: Mon, 20 May 2019 17:31:54 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

On 05/19/19 22:50 PM, Juri Linkov wrote:
>> 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)))

That's a nice solution, too, thanks!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]