bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#9054: 24.0.50; show source in other window


From: Juri Linkov
Subject: bug#9054: 24.0.50; show source in other window
Date: Fri, 10 Sep 2021 19:15:50 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>> (defun display-buffer-from-help-p (_buffer-name _action)
>>   (unless current-prefix-arg
>>     (with-current-buffer (window-buffer)
>>       (derived-mode-p 'help-mode))))
>>
>> (push '(display-buffer-from-help-p
>>         display-buffer-same-window
>>         (inhibit-same-window . nil))
>>       display-buffer-alist)
>
> Nice.  It's a bit of a mouthful for users, though.
> ...
> I don't think we can expect users to do all that just to change the
> behaviour of these *Help* commands.  Perhaps if we put the
> `display-buffer-from-help-p' function into Emacs.

Or maybe support specifying a mode directly in the condition part
of display-buffer-alist, but this is still too complex.

> `help-window-select' is (if you squint at it) the kinda-sorta user
> option in the opposite direction, so perhaps the way forward here is to
> just define a new user option, or all a new value (`both'?) that affects
> how windows are selected from the *Help* window.  I guess a new user
> option would be the simplest.

A new user option for buffers outgoing from Help would be fine.





reply via email to

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