Subject: Re: bug#27243: another case: dired-auto-revert-buffer jumps point to beginning of buffer

From: Juri Linkov <[email-masked]>
Date: Sun, 31 May 2020 01:11:32 +0300

>> There is no restoration of the old window's window-point, I think it's
>> the buffer's current value of point that becomes window-point in the
>> first window.  I verified here that when running the recipe the function
>> `window-prev-buffers' is never consulted.
>
> Right.  Maybe we should call 'switch-to-buffer' here so people with
> 'switch-to-buffer-obey-display-actions' non-nil get the
> 'pop-to-buffer-same-window' behavior and others are unaffected.  Let's
> wait for Juri to comment.

Yes, now 'pop-to-buffer-same-window' could be changed back to 'switch-to-buffer'.

But we need to ask Stephen if reverting back to 'switch-to-buffer'
and customizing 'switch-to-buffer-obey-display-actions' to non-nil
really provides the same behavior.