Re: [PATCH v2] emacs: Use pop-to-buffer-same-window rather than switch-to-buffer

Subject: Re: [PATCH v2] emacs: Use pop-to-buffer-same-window rather than switch-to-buffer

Date: Sat, 15 Aug 2020 08:02:39 -0300

To: Sean Whitton, notmuch@notmuchmail.org

Cc:

From: David Bremner


Sean Whitton <spwhitton@spwhitton.name> writes:

> This means that notmuch commands obey display-buffer-alist so the user
> can customize how buffers show up.
>
> It also permits the use of C-x 4 4, C-x 5 5 and C-x t t, available in
> Emacs 28.  For example, one can use C-x 4 4 M-x notmuch-jump-search RET
> to open a saved search in another window rather than the current window.
> Or in notmuch-search mode, C-x 5 5 RET to view the message at point in
> a new frame.
>
> notmuch-tree has custom buffer display logic, so bind
> display-buffer-overriding-action to make pop-to-buffer-same-window
> behave exactly as switch-to-buffer while that function is running.

I only tested this in emacs 26.3, but I think I hit all the modified
code paths and it didn't crash.  It would be nice to have one or two
more people try it out before I apply to master; I tend to be somewhat
oblivious to subtle changes in emacs window behaviour.

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: