GNU bug report logs - #76565
30.1; emacs xref: cannot jump back to the previous position when `xref-history-storage' is set to `xref-window-local-history'

Previous Next

Package: emacs;

Reported by: Guoyu Ou <benogy <at> gmail.com>

Date: Tue, 25 Feb 2025 19:44:01 UTC

Severity: normal

Found in version 30.1

Fixed in version 30.2

Done: Dmitry Gutov <dmitry <at> gutov.dev>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Guoyu Ou <benogy <at> gmail.com>, 76565 <at> debbugs.gnu.org
Subject: bug#76565: 30.1; emacs xref: cannot jump back to the previous position when `xref-history-storage' is set to `xref-window-local-history'
Date: Thu, 27 Feb 2025 05:51:47 +0200
[Message part 1 (text/plain, inline)]
Hi!

On 25/02/2025 16:36, Guoyu Ou wrote:
> I installed emacs 30.1 from debian sid, and found that xref cannot jump
> back to the previous position when `xref-history-storage` is set to
> `xref-window-local-history`. It works in emacs 29.4 with xref 1.6.3.
> 
> ### settings and tests
> 
> The following is my `~/.emacs`:
> 
> ```lisp
> (when (>= emacs-major-version 29)
>    (setq xref-history-storage 'xref-window-local-history))
> ```

Thanks for the report. It seems like a regression from fixing bug#65631.

Here's a patch that addresses it.

I'm not 100% convinced it this direction, though, (things are getting 
more complex) so it would be great if it you could try it out and see if 
there are any other scenarios that worked for you before, that still are 
not good with this patch applied.
[fix-76565-xref-window-local-history.diff (text/x-patch, attachment)]

This bug report was last modified 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.