From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: xref call project-current in correct buffer Date: Tue, 15 Nov 2022 22:10:05 +0200 Message-ID: <83tu30gesi.fsf@gnu.org> References: <8635ak9hny.fsf@stephe-leake.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32573"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 15 21:10:30 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ov2GL-0008J0-O0 for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Nov 2022 21:10:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ov2Fl-0001UD-Eg; Tue, 15 Nov 2022 15:09:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ov2Fk-0001Ty-JH for emacs-devel@gnu.org; Tue, 15 Nov 2022 15:09:52 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ov2Fk-0000DS-0w; Tue, 15 Nov 2022 15:09:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=87BeQeMqsaBuU4TDkTHTJVazveFeVztM5oTgJjuV1pc=; b=XMp0sYLzpv7b WvPIHYU5RNkhEGkIJ7JmQ0TyVNc6OEQFHWDiKmV33i1a+6vxQ15raskfy95DBARMpRY1xhYxebLVJ f0Vk6+/GyA+FYYKihkm42b0D886OwsWiPRTZ/6p+D+E0AS0720L4vFy39+OyxzBOCGb+NMV9BV8FW Ceu5BfUM+0XNA/XwXTbGfbXqhR0lRlKAPszoVRwr7PFe+K9HLVTBgDNIk24KFPrLBjbMQTt3KV0qG lu7VZ29m1Y7/LL+HolWtTCg0Q0JV3obLmxWMcOIx941TuBmWO1MJ3qri8PF8sGbSBoUPLSkEWDc2E FUHyFe3PpXg19WVNlY/Yug==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ov2Fj-0007iG-Fk; Tue, 15 Nov 2022 15:09:51 -0500 In-Reply-To: <8635ak9hny.fsf@stephe-leake.org> (message from Stephen Leake on Tue, 15 Nov 2022 10:49:53 -0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299883 Archived-At: > From: Stephen Leake > Date: Tue, 15 Nov 2022 10:49:53 -0800 > > I ran into a situation where xref failed because > xref-show-definitions-buffer-at-bottom calls project-current in the > *xref* buffer, not the original source buffer, and the project in that > buffer is different from the one in the *xref* buffer. > > The attached patch fixes it ENOPATCH