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

From: Juri Linkov <[email-masked]>
Date: Fri, 23 Nov 2018 00:45:11 +0200

> ... 'switch-to-buffer' would call 'pop-to-buffer-same-window' at the
> beginning when 'switch-to-buffer-pop' is non-nil.  Right?

Yes, I think now it's better to call it at the beginning.

> This means, however, that it would skip the
> 'switch-to-buffer-in-dedicated-window' rigmarole.  It wouldn't make
> sense because 'pop-to-buffer-same-window' would probably use
> a completely different window anyway.  Right?

'switch-to-buffer-in-dedicated-window' is only used in the
interactive spec.  But anyway 'display-buffer' called from
'pop-to-buffer-same-window' will handle dedicatedness in any case.