GNU bug report logs -
#32790
27.0.50; point jumps unexpectedly after delete-window
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Thu, 20 Sep 2018 23:57:01 UTC
Severity: minor
Found in version 27.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 08.11.2018 23:38, Juri Linkov wrote:
>>> Shouldn't xref support a shorter and easier to type key sequence
>>> ‘S-M-<right> M-.’ with the following patch:
>>>
>>> diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
>>> index 6b1421a6f7..6aab174bcf 100644
>>> --- a/lisp/progmodes/xref.el
>>> +++ b/lisp/progmodes/xref.el
>>> @@ -425,7 +425,7 @@ xref--pop-to-location
>>> (xref-location-marker (xref-item-location item))))
>>> (buf (marker-buffer marker)))
>>> (cl-ecase action
>>> - ((nil) (switch-to-buffer buf))
>>> + ((nil) (pop-to-buffer-same-window buf))
>>> (window (pop-to-buffer buf t))
>>> (frame (let ((pop-up-frames t)) (pop-to-buffer buf t))))
>>> (xref--goto-char marker))
>>
>> I think so. In particular because 'xref--goto-char' does not cohabit
>> well with 'switch-to-buffer-preserve-window-point' in the first place.
>> Dmitry should consent, though.
>
> Dmitry, do you agree this is a change for the better?
It shouldn't hurt (but apparently you went with a different direction
anyway already).
Sorry I never responded, but originally this bug had nothing to do with
xref, and I tuned out months ago.
If somebody knows how to set up Thunderbird to somehow extra notify when
somebody Cc's you directly, please send me a direct email.
This bug report was last modified 5 years and 235 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.