Subject: bug#57081: 29.0.50; [PATCH] Point associated with Window for good reasons

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 09 Aug 2022 19:55:54 +0200

[email-masked] writes:

> When temporarily switching out one window, say to check a definition,
> our flow gets wrecked by C-x b's refusal to flip back to the original
> buffer since it's already displayed in another window, albeit, and
> very importantly, at a different point (which to belabor things, is
> the whole reason we want the same buffer in two windows).

I think adding this might make sense, but with a user option to control
the action.

> * lisp/ido.el (ido-make-buffer-list-1): De-obfuscate.
> (ido-make-buffer-list): Include visible buffer when switching.
> (ido-get-buffers-in-frames): De-obfuscate.
> * lisp/window.el (read-buffer-to-switch): Include visible buffer.
> * test/lisp/ido-tests.el (ert-deftest): Test it.

And as usual, your patch includes a whole bunch of apparently irrelevant
stuff.