unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: 49846@debbugs.gnu.org
Subject: bug#49846: 28.0.50; project-find-regexp results does not open target file
Date: Wed, 04 Aug 2021 23:10:10 +0300	[thread overview]
Message-ID: <87sfzp8mgg.fsf@mail.linkov.net> (raw)
In-Reply-To: <m2v94mpi3o.fsf@codeisgreat.org> (Pankaj Jangid's message of "Tue, 03 Aug 2021 22:42:59 +0530")

> Steps to reproduce:
> 1. emacs -Q
> 2. C-x p p (project-switch-project)
> 3. select project
> 4. press g (Find Regexp) and search for a term then RET
> 5. In the results select any file
>
> Result: No reference at point
>
> Expectation: step-5 should open the file-at-point and point should be
> placed at a suitable place in the opened file.

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.

But I don't see the same problem with project-find-regexp,
it correctly changes the directory to the project root,
and opens the file-at-point.





  reply	other threads:[~2021-08-04 20:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-03 17:12 bug#49846: 28.0.50; project-find-regexp results does not open target file Pankaj Jangid
2021-08-04 20:10 ` Juri Linkov [this message]
2021-08-05  3:11   ` Dmitry Gutov
2021-08-05  3:06 ` Dmitry Gutov
2021-08-05  3:58   ` Pankaj Jangid
2021-08-05 13:13     ` Dmitry Gutov
2021-08-05 14:02       ` Pankaj Jangid
2021-08-05 14:03         ` Dmitry Gutov
2021-08-05 14:27           ` Pankaj Jangid
2021-08-05 23:51             ` Dmitry Gutov
2021-08-06  3:07               ` Pankaj Jangid

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfzp8mgg.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=49846@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).