From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#53626: 28.0.91; project-find-regexp (C-x p g) twice results in searching different projects Date: Thu, 03 Feb 2022 22:32:18 -0700 Message-ID: <87leyrgpst.fsf@athena.silentflame.com> References: <87wnii73x5.fsf@catern.com> <87a6fd68ku.fsf@athena.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21296"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.31.4 (https://notmuchmail.org) Emacs/29.0.50 (x86_64-pc-linux-gnu) To: Dmitry Gutov , sbaugh@catern.com, 53626@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 04 06:33:33 2022 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 1nFrDv-0005Hb-Qs for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 06:33:33 +0100 Original-Received: from localhost ([::1]:60450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFrDt-0006T7-T7 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 00:33:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFrDS-00067i-RE for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 00:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFrDS-0005zL-I8 for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 00:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFrDS-0007mh-Gf for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 00:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Feb 2022 05:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53626 X-GNU-PR-Package: emacs Original-Received: via spool by 53626-submit@debbugs.gnu.org id=B53626.164395274929869 (code B ref 53626); Fri, 04 Feb 2022 05:33:02 +0000 Original-Received: (at 53626) by debbugs.gnu.org; 4 Feb 2022 05:32:29 +0000 Original-Received: from localhost ([127.0.0.1]:58627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFrCv-0007lh-B8 for submit@debbugs.gnu.org; Fri, 04 Feb 2022 00:32:29 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:47003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFrCs-0007lM-A8 for 53626@debbugs.gnu.org; Fri, 04 Feb 2022 00:32:27 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id DA5A55C01C5; Fri, 4 Feb 2022 00:32:20 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 04 Feb 2022 00:32:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; bh=vIcuQTT3crcEpyRM2PgV+EiTAnTUSzLqv6ccBD LrH24=; b=HV+XkqnQ7dWD2HP4rqxs7Vy9dRyQhJezWs32fZxFayTS7uyC8wpIS5 b5sqs14w1ekSmfyr31NhLY5XF0dSFVHK8vD+W5crFREUyZuazYxVJPeyvsjd1CdH cRJcRvxv/BCbY24DtgbBbbiqVdAYyIdiE2NSPZkzu4639ALkKIdJEotq16vlkjEy aDEcqGVM2SG4ZzXkPR73iUomC269ByqoC/44v/UpGrj8admem/S8VO/AkYVhGJl9 Cs+oNx8rI35k1kkZZIv+cC3nLySr5YICm1xt4qPalExMOQ276NfNQL2ROthYaXCZ /kAVPg7H7XFzE+/LhNEEc/Kg21hRiC2w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=vIcuQTT3crcEpyRM2 PgV+EiTAnTUSzLqv6ccBDLrH24=; b=gqH0mGmbKCJuglcilmLIIPjqcxTRIxO+9 RCjRs8qk59CWTLu7ZOiJcoXzW8MBBsCRrI+TbyFkXxzcy2087q4I1wFoWLW1+LrU PZatqeYxK0opjDPBneNRqd/zz9TopSk1QRnax6ALPUo0aw+ZwCRS+oFPuIGT33Sk qdSGlKjf5j4HxASr4vPVi3fh10iFfnqDpK1jeL9Qw23IGzzwESnd3iTrLq0nw746 IvsDdnOOHgVuE6d/lXoEQoSyQdgSblDYatOWOBJ/l2mNORGi0Ib8374k6LeSfcm1 5FIG/Qp1vDcc7DnUTWQCBE3c3EqhlX7K9jzqmlB515xgHJcxHniqQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgeekgdekhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffgffkfggtgesthdttddttdertdenucfhrhhomhepufgvrghnucgh hhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqeenuc ggtffrrghtthgvrhhnpeelgeeggfdvieejvdfhudfggeetgfekkeeuieeljeejhedugeeg feetgefhueffkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 4 Feb 2022 00:32:20 -0500 (EST) Original-Received: by athena.silentflame.com (Postfix, from userid 1000) id BD0C81D25BD; Fri, 4 Feb 2022 05:32:18 +0000 (UTC) In-Reply-To: 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:225961 Archived-At: Hello, On Fri 04 Feb 2022 at 04:32am +02, Dmitry Gutov wrote: > On 30.01.2022 08:28, Sean Whitton wrote: >> These bindings hide the >> buffer-local value for default-directory in*xref*, such that >> xref--show-xref-buffer is only able to set the binding's value, not the >> real buffer-local value, and so when the let forms unwind*xref*'s old >> default-directory is restored. > > I have to say I'm surprised by this mechanic: not even setq-local helps. I guess that's dynamic binding for you :) > Guess we could kill the xref buffer every time, instead of erasing and > re-filling it, though. > [...] > It has the unfortunate side-effect of having that buffer displayed in a > different window, though. Or at least the possibility (though it happens > every time here). > > Maybe some kill-but-recreate-and-show-in-the-same-window-first kind of > hack would do the trick. Maybe we could rename the old buffer to a temp name, then create and fill the new one, then set the old buffer's window's buffer to the new one, and finally kill the old one. But this is not nice at all. How necessary is it that project.el set up this binding? Is there something else it could do to achieve the same effect? At worst, it seems better to special-case *xref* over in project.el than in xref.el, but you have a better overall perspective of the two libraries than me. -- Sean Whitton