GNU bug report logs -
#33870
27.0.50; xref-goto-xref not configurable
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Tue, 25 Dec 2018 20:53:01 UTC
Severity: minor
Found in version 27.0.50
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #32 received at 33870 <at> debbugs.gnu.org (full text, mbox):
Dmitry Gutov <dgutov <at> yandex.ru> writes:
> On 27.12.2018 2:05, João Távora wrote:
>> You can read up the whole bug here:
>>
>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28814
>>
>> I quote from that thread:
>>
>> Here are two very simple Emacs -Q recipes that demonstrate [the bug]
>
> Does this work well for everybody?
>
> diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
> index c71802c918..85d4325d9e 100644
> --- a/lisp/progmodes/xref.el
> +++ b/lisp/progmodes/xref.el
> @@ -494,7 +494,8 @@ xref--show-pos-in-buf
> (or (and (window-live-p xref--original-window)
> xref--original-window)
> (selected-window))
> - (display-buffer buf action))
> + (pop-to-buffer buf action)
> + (selected-window))
> (xref--goto-char pos)
> (run-hooks 'xref-after-jump-hook)
> (let ((buf (current-buffer)))
It works for those two recipes, because `action' is passed directly to
display-buffer. Don't know:
* if it might be introducing a new untested corner case because of the
"recording" of select-window inside. Perhaps this corner case is
unwanted, but it might also be wanted (and we didn't know).
* if it will bring Yuri what he wants. Doesn't seem like it will, since
display buffer is given an explicit ACTION.
João
This bug report was last modified 6 years and 35 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.