From unknown Thu Jun 19 14:25:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49905: xref-find-references doesn't change directory to match relative filenames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Aug 2021 00:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49905 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 49905@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162820870114213 (code B ref -1); Fri, 06 Aug 2021 00:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Aug 2021 00:11:41 +0000 Received: from localhost ([127.0.0.1]:48664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBnSe-0003hB-Vu for submit@debbugs.gnu.org; Thu, 05 Aug 2021 20:11:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:53208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBnSd-0003h4-PU for submit@debbugs.gnu.org; Thu, 05 Aug 2021 20:11:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBnSd-0007mX-Jh for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 20:11:39 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:33959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBnSb-0007j4-Jg for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 20:11:39 -0400 Received: (Authenticated sender: juri@linkov.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 5BAFA40003 for ; Fri, 6 Aug 2021 00:11:30 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET Date: Fri, 06 Aug 2021 02:52:57 +0300 Message-ID: <87pmurbfta.fsf_-_@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.194; envelope-from=juri@linkov.net; helo=relay2-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) >> 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. From unknown Thu Jun 19 14:25:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49905: xref-find-references doesn't change directory to match relative filenames Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Aug 2021 00:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49905 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov , 49905@debbugs.gnu.org Received: via spool by 49905-submit@debbugs.gnu.org id=B49905.162820890814584 (code B ref 49905); Fri, 06 Aug 2021 00:16:02 +0000 Received: (at 49905) by debbugs.gnu.org; 6 Aug 2021 00:15:08 +0000 Received: from localhost ([127.0.0.1]:48677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBnW0-0003nA-0z for submit@debbugs.gnu.org; Thu, 05 Aug 2021 20:15:08 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:50784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBnVy-0003mO-Bf for 49905@debbugs.gnu.org; Thu, 05 Aug 2021 20:15:06 -0400 Received: by mail-wm1-f46.google.com with SMTP id m19so4477083wms.0 for <49905@debbugs.gnu.org>; Thu, 05 Aug 2021 17:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=1trY4wr0SlQVB2bMEMMBftqwjC1eOHN2e8LvOaWn3jg=; b=kz0bTXDw0zoqdsML59JAynUxLd4F/6zUNbVBoMo8Ei7M5sCprWavtHRwihn/N0i0xe ruwjQIUO5DlQpXMOK6+dohr7cjJBvksSWpiSan+fFnf3ahBLo35OQ1xJ8pe4ujKuE00A pn4yI77LO38MhSL6bI/CopVK5REcYpgQoeP97X/eOerVlMsLqNfF+O+Nd5JBjgmANerc ZQY70HEDJYK1NwmKYmB2NTTHav312jUmMqnnRC8n4ZdV59KbfRci0ZMRu8NFgyZTRXbc BDEg9ffd2ASPqajx7NjheunDA5qJG3q5qTt7qJTVOLl6MBF8/TozzZOWWKaszubRbEM2 wSoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1trY4wr0SlQVB2bMEMMBftqwjC1eOHN2e8LvOaWn3jg=; b=umTheQNbcQisUvcISZC9XucT3WHkEdPRm+ztwVkDoUoLd0AScYAO3Lb1xQMX0z7yie gNKxTssbX9nvPQKZ31ZQ8N79x6GiT6/bx+Zdg8N17FY+WpM0Y26QjnxNx4v6lPSQjMXX GLim2F0SmoNqWjRlNSPDAcoW0eQT89nu9uQhzVjjQPXZ/qesMF/Bs7AnKFZW276tClhz CYHGuaaNVlZ2WBdXz0BiImWxJjzIIH0HNuK6WOeM10JhfXJi4Vabb4JRLRmOoORwyIc8 9ahHZfBCrtK1bqtk0H+IrcV0hcAEwOthTo1rNNDQHtlveQc4qq825pmmVqKEVryR/hgW QZ5A== X-Gm-Message-State: AOAM5312VGWa0ZMWwfo0UAMH503uFA7GGhPt3Fjofs4FoPEsBjWTKbOb LLCgQcemF+R6Oe0Dv3oJW8zT/i6g9Ac= X-Google-Smtp-Source: ABdhPJyk4nGBiJqTqBva4qoVhBaCT8CwTYHsbvcN6N3nhSn3A3K/ig/xYveP+cURGpj8zDwXJDyqYw== X-Received: by 2002:a05:600c:1d11:: with SMTP id l17mr593221wms.185.1628208900595; Thu, 05 Aug 2021 17:15:00 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id j36sm9743140wms.16.2021.08.05.17.14.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Aug 2021 17:15:00 -0700 (PDT) References: <87pmurbfta.fsf_-_@mail.linkov.net> From: Dmitry Gutov Message-ID: <49ea882f-0a37-0602-55e8-3c3eb558144a@yandex.ru> Date: Fri, 6 Aug 2021 03:14:58 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <87pmurbfta.fsf_-_@mail.linkov.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 06.08.2021 02:52, Juri Linkov wrote: > 3. check that default-directory of the output*xref* buffer > with relative file names is not project's root. But does that lead to you not being able to visit the references by pressing RET (or C-o)? From unknown Thu Jun 19 14:25:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49905: xref-find-references doesn't change directory to match relative filenames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Aug 2021 00:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49905 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 49905@debbugs.gnu.org Received: via spool by 49905-submit@debbugs.gnu.org id=B49905.162821101817725 (code B ref 49905); Fri, 06 Aug 2021 00:51:02 +0000 Received: (at 49905) by debbugs.gnu.org; 6 Aug 2021 00:50:18 +0000 Received: from localhost ([127.0.0.1]:48705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBo42-0004bp-MN for submit@debbugs.gnu.org; Thu, 05 Aug 2021 20:50:18 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:39919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBo40-0004bM-VS for 49905@debbugs.gnu.org; Thu, 05 Aug 2021 20:50:17 -0400 Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 9CB76200002; Fri, 6 Aug 2021 00:50:09 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87pmurbfta.fsf_-_@mail.linkov.net> <49ea882f-0a37-0602-55e8-3c3eb558144a@yandex.ru> Date: Fri, 06 Aug 2021 03:36:51 +0300 In-Reply-To: <49ea882f-0a37-0602-55e8-3c3eb558144a@yandex.ru> (Dmitry Gutov's message of "Fri, 6 Aug 2021 03:14:58 +0300") Message-ID: <87k0kz8kn8.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> 3. check that default-directory of the output*xref* buffer >> with relative file names is not project's root. > > But does that lead to you not being able to visit the references by > pressing RET (or C-o)? 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. From unknown Thu Jun 19 14:25:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49905: xref-find-references doesn't change directory to match relative filenames Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Aug 2021 08:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49905 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 49905@debbugs.gnu.org Received: via spool by 49905-submit@debbugs.gnu.org id=B49905.16282401559072 (code B ref 49905); Fri, 06 Aug 2021 08:56:01 +0000 Received: (at 49905) by debbugs.gnu.org; 6 Aug 2021 08:55:55 +0000 Received: from localhost ([127.0.0.1]:49053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBvdy-0002MF-UF for submit@debbugs.gnu.org; Fri, 06 Aug 2021 04:55:55 -0400 Received: from mail-ej1-f41.google.com ([209.85.218.41]:41722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBvdx-0002Lt-KV for 49905@debbugs.gnu.org; Fri, 06 Aug 2021 04:55:53 -0400 Received: by mail-ej1-f41.google.com with SMTP id x11so13991857ejj.8 for <49905@debbugs.gnu.org>; Fri, 06 Aug 2021 01:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=P+jqBgofFuhMwr9lok7JQctDQdAV6j0bxOyF5MNeMxg=; b=ssQ7jifFaRFLVH1AkVT1jyEOQname7z8iB6abIjEjUOr6fRvLDEJ+XTayAyhI2fZ/q CINgUWeHvRzaR8k0S8I7wwLdbYZaBXtdoY77IFCh8ZLZXXXO/rJmTxHgFifu5L8WmXZc zo/4GzFG7WtMZ/MXi9c8hOObXeB1vB4XDFyjJBhPudnAh347Nma1o57Sa357NXP7wVz9 b03LRG3U0B4LSY2yD0o1Qw9cyBY0Fk4j485WysQCW/dUSDIOoxcFhUte+WDVf/mwpavD ccxsJTfpxpBLCUZkmJEMiq6jrvA6xjME3l5CUHdvVY7kEuLnBtmK95pZvI2C9Y0Y0OR+ vRbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=P+jqBgofFuhMwr9lok7JQctDQdAV6j0bxOyF5MNeMxg=; b=cvTR/fKSGcNRZb99FSgh6+nCpkceXNfQaArXeZJ6NetEK5ffWF7vGTohu+OB3W+2bS R+fT3qRdRPy+B519j/1uTbldvVR1HVIyCkCrkNRg3lCG43r49Huq1vym/EO/m5z5tNYV OUZwrKYLRpCE1LFAwZJYpweFWkRlZjcUdFW//ywy7kziEja+iCALQgrUsgq51Qwa0t6t hpIfxuztR1apIrgEC/6BIwEEAVTNnwZ7nnS0hq24CHYSWnMWgk3rwevpxVQaClAlAKHp XidX72/p/DYygZl78A77fNuMy9N5dYBQaF9b0BPtkvbp18JT/XThKEel6rAdsTOIyElG Qieg== X-Gm-Message-State: AOAM530kv/zioeKZ6l2QQ8sWHLGYtZrI9HHNBdqt9umpV5AjITrx2vvU aUK3EiV7292WX3pNBmi5/sL45Am8qMo= X-Google-Smtp-Source: ABdhPJzPABSt+MDJtzEU3+qaB96EL1YbjbmuNsqWrhq1LNCQ21yNFSIebdxLbZacx0o/W5Mt8Iuncw== X-Received: by 2002:a17:906:6cb:: with SMTP id v11mr8809419ejb.482.1628240147647; Fri, 06 Aug 2021 01:55:47 -0700 (PDT) Received: from [192.168.0.78] (buscust41-118.static.cytanet.com.cy. [212.31.107.118]) by smtp.googlemail.com with ESMTPSA id i10sm3541203edf.12.2021.08.06.01.55.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Aug 2021 01:55:47 -0700 (PDT) References: <87pmurbfta.fsf_-_@mail.linkov.net> <49ea882f-0a37-0602-55e8-3c3eb558144a@yandex.ru> <87k0kz8kn8.fsf@mail.linkov.net> From: Dmitry Gutov Message-ID: <0ef881b0-b4c9-4ee0-6710-adcf046ad9cb@yandex.ru> Date: Fri, 6 Aug 2021 11:55:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <87k0kz8kn8.fsf@mail.linkov.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 06.08.2021 03:36, Juri Linkov wrote: > 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. From unknown Thu Jun 19 14:25:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49905: xref-find-references doesn't change directory to match relative filenames 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 X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 49905@debbugs.gnu.org Received: via spool by 49905-submit@debbugs.gnu.org id=B49905.162858026014593 (code B ref 49905); Tue, 10 Aug 2021 07:25:02 +0000 Received: (at 49905) by debbugs.gnu.org; 10 Aug 2021 07:24:20 +0000 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 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 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) From: Juri Linkov Organization: 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> Date: Tue, 10 Aug 2021 10:10:07 +0300 In-Reply-To: <0ef881b0-b4c9-4ee0-6710-adcf046ad9cb@yandex.ru> (Dmitry Gutov's message of "Fri, 6 Aug 2021 11:55:45 +0300") Message-ID: <87r1f2cc20.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> 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. From unknown Thu Jun 19 14:25:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Juri Linkov Subject: bug#49905: closed (Re: bug#49905: xref-find-references doesn't change directory to match relative filenames) Message-ID: References: <527f76b8-e33e-714a-95b9-027b60930942@yandex.ru> <87pmurbfta.fsf_-_@mail.linkov.net> X-Gnu-PR-Message: they-closed 49905 X-Gnu-PR-Package: emacs Reply-To: 49905@debbugs.gnu.org Date: Fri, 13 Aug 2021 23:56:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1628898961-4876-1" This is a multi-part message in MIME format... ------------=_1628898961-4876-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #49905: xref-find-references doesn't change directory to match relative fil= enames 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@debbugs.gnu.org. --=20 49905: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D49905 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1628898961-4876-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 49905-done) by debbugs.gnu.org; 13 Aug 2021 23:55:46 +0000 Received: from localhost ([127.0.0.1]:43230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEh1e-0001GC-J7 for submit@debbugs.gnu.org; Fri, 13 Aug 2021 19:55:46 -0400 Received: from mail-wm1-f41.google.com ([209.85.128.41]:44016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEh1c-0001G0-Ln for 49905-done@debbugs.gnu.org; Fri, 13 Aug 2021 19:55:45 -0400 Received: by mail-wm1-f41.google.com with SMTP id k5-20020a05600c1c85b02902e699a4d20cso7917596wms.2 for <49905-done@debbugs.gnu.org>; Fri, 13 Aug 2021 16:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=mfb+XkKAKpfr+5pLgJITO5pp0pXlfiSP5GD1QcvKZuw=; b=kPanCOJx4oxYRv+S9XZtrp8ZaQBVZ5QbW3QoyqO0NrDeyxEuEHUPqnmRMc1y9VVSE5 be6Osa2Tu0kBlkvaZudenli6nNn0Q97+dsHMTF2tdFmk7PNlNfQ/PqU01AtyPLYBEGLr ajSKW6U6mJR8k6T6VB1v1vFHVw9sf831KDqnJSFFKYvqE8R4V++Kgjt/CtmTm0JagS7I 1HkacaGBjhPWa3GuXxXauK3KXd4JPoEItJUq/ipDzcWtgEQe2fNzGbOkQyEuty+kJGJC h5W6yDP9B6fo+2rfppeJxJ65EPXF9FyxlbF2BJEQ+/AImRE3dfCZf2x8HZmtkEx46JpU uhsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mfb+XkKAKpfr+5pLgJITO5pp0pXlfiSP5GD1QcvKZuw=; b=ZY6YjAO1GL38jEKjSTjfHezyUI5sflQ0cWDkHrAkoKWSRj9B9f/hgt5n9OdWtV4DsM 7WjR4I1YW3aiib//XNKPiVJZvvaF5ZntX1JNGGYbMZvZVzyQzUBbmI/4ugGkIW0SjQF6 biGW1yCLuQSZ+nRGH2hEvIbzpZcOh4DaJCgYpKkyybvi4+7trcSc3veKRZWm9tQ7sJOx aUAfxY1qsTB66vbAeNivl3dZgtUSj6d344rVlOG8bG3GRBUB8KMkcrsiJjbgWgWyG6vW 7UQycNErg8WDikRzKuH3GOSLNOjp5QVZitCA4Kfy1Kub4w44QuHIiytuSuzu8U1dL/fR kg+w== X-Gm-Message-State: AOAM531PX+Qx/nHbRqAF4gS52sfs6mpbub/9woHfWwBSmvC3AFXEIDxc F1PxDJHSHnNr9xCbq66hxPGqeABPU68= X-Google-Smtp-Source: ABdhPJzTwpdxrUiZWTL9/CSxB1ScnuuXb6n7Uunz1GokHD5hCfo7G7JyRLJlyAXlR6RkWCWuI/6s2Q== X-Received: by 2002:a7b:c2fa:: with SMTP id e26mr4938271wmk.102.1628898939045; Fri, 13 Aug 2021 16:55:39 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id s10sm3574322wrv.54.2021.08.13.16.55.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Aug 2021 16:55:38 -0700 (PDT) Subject: Re: bug#49905: xref-find-references doesn't change directory to match relative filenames To: Juri Linkov 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> <87r1f2cc20.fsf@mail.linkov.net> From: Dmitry Gutov Message-ID: <527f76b8-e33e-714a-95b9-027b60930942@yandex.ru> 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 MIME-Version: 1.0 In-Reply-To: <87r1f2cc20.fsf@mail.linkov.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 49905-done Cc: 49905-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) 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. ------------=_1628898961-4876-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Aug 2021 00:11:41 +0000 Received: from localhost ([127.0.0.1]:48664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBnSe-0003hB-Vu for submit@debbugs.gnu.org; Thu, 05 Aug 2021 20:11:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:53208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBnSd-0003h4-PU for submit@debbugs.gnu.org; Thu, 05 Aug 2021 20:11:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBnSd-0007mX-Jh for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 20:11:39 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:33959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBnSb-0007j4-Jg for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2021 20:11:39 -0400 Received: (Authenticated sender: juri@linkov.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 5BAFA40003 for ; Fri, 6 Aug 2021 00:11:30 +0000 (UTC) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: xref-find-references doesn't change directory to match relative filenames Organization: LINKOV.NET Date: Fri, 06 Aug 2021 02:52:57 +0300 Message-ID: <87pmurbfta.fsf_-_@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.194; envelope-from=juri@linkov.net; helo=relay2-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) >> 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. ------------=_1628898961-4876-1--