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 00:41:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

>> I set 'switch-to-buffer-obey-display-actions’ to t, so to a non-nil value!
>
> My bad.  According to its doc-string
>
>   If non-nil, `switch-to-buffer' runs `pop-to-buffer-same-window' instead.
>
> it just pops to the buffer in the same window and even using
> 'inhibit-same-window' won't prevent it from doing that.  So in this
> particular case you have to set 'menu-bar-select-buffer-function' to
> 'pop-to-buffer'.
>
> As for the general case I wouldn't know.  Juri, how about a special
> value say 'strict' for 'switch-to-buffer-obey-display-actions' that
> simply makes it behave like 'pop-to-buffer'?  Or at least obey
> 'inhibit-same-window'?  Those hard-coded 'switch-to-buffer' instances
> are really hard to get by.

But pop-to-buffer-same-window still follows rules from
display-buffer-alist that can override inhibit-same-window.





reply via email to

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