emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49905: closed (xref-find-references doesn't change directory to matc


From: GNU bug Tracking System
Subject: bug#49905: closed (xref-find-references doesn't change directory to match relative filenames)
Date: Fri, 13 Aug 2021 23:56:01 +0000

Your message dated Sat, 14 Aug 2021 02:55:37 +0300
with message-id <527f76b8-e33e-714a-95b9-027b60930942@yandex.ru>
and subject line Re: bug#49905: xref-find-references doesn't change directory 
to match relative filenames
has caused the debbugs.gnu.org bug report #49905,
regarding xref-find-references doesn't change directory to match relative 
filenames
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
49905: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49905
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: xref-find-references doesn't change directory to match relative filenames Date: Fri, 06 Aug 2021 02:52:57 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
>> 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.



--- End Message ---
--- Begin Message --- Subject: Re: bug#49905: xref-find-references doesn't change directory to match relative filenames Date: Sat, 14 Aug 2021 02:55:37 +0300 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0
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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]