GNU bug report logs - #49905
xref-find-references doesn't change directory to match relative filenames

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Fri, 6 Aug 2021 00:12:01 UTC

Severity: normal

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Juri Linkov <juri <at> linkov.net>
Subject: bug#49905: closed (Re: bug#49905: xref-find-references doesn't
 change directory to match relative filenames)
Date: Fri, 13 Aug 2021 23:56:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#49905: xref-find-references doesn't change directory to match relative filenames

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 49905 <at> debbugs.gnu.org.

-- 
49905: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49905
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Juri Linkov <juri <at> linkov.net>
Cc: 49905-done <at> debbugs.gnu.org
Subject: Re: bug#49905: xref-find-references doesn't change directory to match
 relative filenames
Date: Sat, 14 Aug 2021 02:55:37 +0300
On 10.08.2021 10:10, Juri Linkov wrote:
> I thought the fix could be just adding setting default-directory in the
> right place.  But if this is not easy then please close this request
> since I don't use find-file-at-point often.

Yes. Sorry.

[Message part 3 (message/rfc822, inline)]
From: Juri Linkov <juri <at> linkov.net>
To: bug-gnu-emacs <at> gnu.org
Subject: xref-find-references doesn't change directory to match relative
 filenames
Date: Fri, 06 Aug 2021 02:52:57 +0300
>> I have the same problem.  When calling xref-find-references
>> from a subdirectory, not from the project root, it creates
>> an*xref*  buffer where file names are relative to the
>> project root (when xref-file-name-display is 'project-relative'),
>> but the default directory is not the project root.
>> So using file-at-point fails to find the relative file.
>
> That sounds different. Could you file a separate report with exact
> reproduction steps? Try to make sure you're using the latest master first
> (I fixed bug ~like that a couple of months ago).
>
> FWIW, I'm cannot reproduce.

Why not?  Here is the reproduction steps:

0. run `emacs -Q`
1. open xref.el
2. type 'M-? xref-find-references RET'
3. check that default-directory of the output *xref* buffer
   with relative file names is not project's root.



This bug report was last modified 3 years and 336 days ago.

Previous Next


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