Subject: bug#32790: 27.0.50; point jumps unexpectedly after delete-window

From: Juri Linkov <[email-masked]>
Date: Wed, 21 Nov 2018 02:12:52 +0200

> So please propose a name for the option like say
> 'switch-to-buffer-pop-to-buffer' and tell me whether and how what we
> execute then obeys 'switch-to-buffer-preserve-window-point'.

Maybe a shorter name 'switch-to-buffer-pop'?

> But 'pop-to-buffer-same-window' doesn't have the
> 'switch-to-buffer-preserve-window-point' semantics.  How would you
> want to integrate them?

Maybe just call 'pop-to-buffer-same-window' at the end of 'switch-to-buffer'
when a new option 'switch-to-buffer-pop' is non-nil?