Subject: bug#52467: 29.0.50; Use pop-to-buffer for shell

From: Dmitry Gutov <[email-masked]>
Date: Sun, 26 Dec 2021 17:37:08 +0200

On 26.12.2021 14:35, Lars Ingebrigtsen wrote:
> I think that's more unpredictable.  What happens currently is very regular.

That's a fair argument, too.

I suppose that if we changed pop-to-buffer-same-window to behave like I 
suggested, it might be more "regular" as well, but more of a breaking 
change.

In the meantime, people who would like that behavior across the board 
can add this to their init file:

   (setq display-buffer--same-window-action
         '((display-buffer-reuse-window
            display-buffer-same-window)
           (inhibit-same-window . nil)))