Subject: Re: bug#33870: 27.0.50; xref-goto-xref not configurable

From: Dmitry Gutov <[email-masked]>
Date: Wed, 26 Dec 2018 04:10:42 +0200

Hi Juri,

On 25.12.2018 22:42, Juri Linkov wrote:
> X-Debbugs-CC: Dmitry Gutov <[email-masked]>
> 
> There is no more need to replace switch-to-buffer with
> pop-to-buffer-same-window in xref--pop-to-location
> like was asked in https://debbugs.gnu.org/32790#206
> because now a new option switch-to-buffer-obey-display-actions
> can be customized to t.

Sorry I never responded, see the message in that other thread.

> But still there is one xref command, namely `xref-goto-xref' bound to
> RET in the *xref* buffer that always displays the buffer in the
> predefined window, and there is no way to change this behavior.
> 
> Is it possible to change it to use either pop-to-buffer-same-window
> or at least switch-to-buffer?

IIUC you want to change xref--show-pos-in-buf to use 
pop-to-buffer-same-window or switch-to-buffer instead of display-buffer.

Would you like to propose a patch that would still honor the 'action' 
argument (or the values of xref--original-window* directly)?

Also pinging João who wrote that code.