From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#49905: xref-find-references doesn't change directory to match relative filenames Date: Tue, 10 Aug 2021 10:10:07 +0300 Organization: LINKOV.NET Message-ID: <87r1f2cc20.fsf@mail.linkov.net> References: <87pmurbfta.fsf_-_@mail.linkov.net> <49ea882f-0a37-0602-55e8-3c3eb558144a@yandex.ru> <87k0kz8kn8.fsf@mail.linkov.net> <0ef881b0-b4c9-4ee0-6710-adcf046ad9cb@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23104"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 49905@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 10 09:26:56 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDMA3-0005su-Gh for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Aug 2021 09:26:55 +0200 Original-Received: from localhost ([::1]:51626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDMA2-00077e-Co for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Aug 2021 03:26:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDM8E-00031q-Pc for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 03:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDM8E-0003yG-Hy for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 03:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDM8E-0003oc-FG for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 03:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Aug 2021 07:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49905 X-GNU-PR-Package: emacs Original-Received: via spool by 49905-submit@debbugs.gnu.org id=B49905.162858026014593 (code B ref 49905); Tue, 10 Aug 2021 07:25:02 +0000 Original-Received: (at 49905) by debbugs.gnu.org; 10 Aug 2021 07:24:20 +0000 Original-Received: from localhost ([127.0.0.1]:58328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDM7Y-0003nI-ID for submit@debbugs.gnu.org; Tue, 10 Aug 2021 03:24:20 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:47125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDM7X-0003mg-9A for 49905@debbugs.gnu.org; Tue, 10 Aug 2021 03:24:19 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 4C51F20005; Tue, 10 Aug 2021 07:24:11 +0000 (UTC) In-Reply-To: <0ef881b0-b4c9-4ee0-6710-adcf046ad9cb@yandex.ru> (Dmitry Gutov's message of "Fri, 6 Aug 2021 11:55:45 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211476 Archived-At: >> No problem with RET and C-o, but e.g. using 'find-file-at-point' >> on the file name fails to find the relative file name. > > Is that a real problem? Do you often use find-file-at-point in > those buffers? > > Perhaps the way to solve it is to finally make the groups "clickable" (as > was requested at one point in that other report). > > Changing default-directory to the project root might not be so easy: the > part of the code that know about the current project, and the one that can > be responsible for setting default-directory, are separate. 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.