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

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

bug#37840: Missing in the Emacs manuals:


From: Juri Linkov
Subject: bug#37840: Missing in the Emacs manuals:
Date: Thu, 07 Nov 2019 23:58:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

>> But pop-to-buffer-same-window still follows rules from
>> display-buffer-alist that can override inhibit-same-window.
>
> OK.  Then customizing 'display-buffer-base-action' and
> 'switch-to-buffer-obey-display-actions' alone is not sufficient for
> overriding the behavior of 'switch-to-buffer'.  The user has to
> customize 'display-buffer-alist' as well.
>
> This means that for Konrad's scenario to work, the minimum requirement
> is
>
> (custom-set-variables
>  '(display-buffer-base-action
>    '((display-buffer-reuse-window display-buffer-pop-up-frame)
>      (reusable-frames . 0)))
>  '(display-buffer-alist
>    '(("\\*.*\\*" . (nil (inhibit-same-window . t)))))
>  '(switch-to-buffer-obey-display-actions t))

This doesn't look good, indeed.

Then maybe switch-to-buffer-obey-display-actions should be replaced
by another variable switch-to-buffer-display-function that could be
customized to possible options #'pop-to-buffer-same-window,
#'pop-to-buffer or any other custom function (and nil by default).





reply via email to

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