From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christian Tietze Newsgroups: gmane.emacs.bugs Subject: bug#49208: 28.0.50; project-find-regexp's xref-mode result buffer is not editable Date: Thu, 24 Jun 2021 21:40:51 +0200 Message-ID: References: <5bafbeba-90f2-4352-91c9-7f895cb05c30@www.fastmail.com> <87wnqji6z9.fsf@gnus.org> <87im23ql97.fsf@gmail.com> <87zgvffbg8.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33619"; mail-complaints-to="usenet@ciao.gmane.io" Cc: , 49208@debbugs.gnu.org To: Lars Ingebrigtsen , Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 24 21:42:22 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 1lwVF0-0008Yn-7b for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Jun 2021 21:42:22 +0200 Original-Received: from localhost ([::1]:60240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwVEz-0005l7-5a for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Jun 2021 15:42:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwVEh-0005kS-Oy for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 15:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60872) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwVEg-0000fM-Mq for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 15:42:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lwVEg-0002OA-GS for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 15:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christian Tietze Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Jun 2021 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49208 X-GNU-PR-Package: emacs Original-Received: via spool by 49208-submit@debbugs.gnu.org id=B49208.16245636699103 (code B ref 49208); Thu, 24 Jun 2021 19:42:02 +0000 Original-Received: (at 49208) by debbugs.gnu.org; 24 Jun 2021 19:41:09 +0000 Original-Received: from localhost ([127.0.0.1]:44182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwVDo-0002Ml-Qc for submit@debbugs.gnu.org; Thu, 24 Jun 2021 15:41:09 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:59493) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwVDi-0002M1-TE for 49208@debbugs.gnu.org; Thu, 24 Jun 2021 15:41:07 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 05B7D3200708; Thu, 24 Jun 2021 15:40:55 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 24 Jun 2021 15:40:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= christiantietze.de; h=from:to:cc:cc:subject:in-reply-to :references:date:message-id:mime-version:content-type; s=fm1; bh=tYEZIme1y9KtO13W7E85Ux3vxbqSGABOF8/phIN5doI=; b=g2q03t17rLqA xYeTi9doYISgApDmEVxAXhQkaIPnX5i6Y1nc3HenXOYwSB/BZzWJQOyjRL1rWXJ2 rBfJkFtLd8PIu3l0Vrs3rAsH7HjZxvzQjAqMpnTCd8+xikE9NOX7Z8RpWjrTKdYL ILCmT+1IYvS/okuExwMevDsB4re6NR6i7KdjFDBBkP0YgbkwVHgEIsA/XfgqDpds 64bSwReN4iIqTdHqkVkXlAVawoZBtPveCymTp+MjPYF2+No3RFVwZF6WhwDilXVU 1dZLz7k7DqV5vhHKyzComTc2Ot5LnfVjB/yMBOx4utGV8LRq93QeqDqdUE7KoBEg U3MdRA9d5Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=tYEZIm e1y9KtO13W7E85Ux3vxbqSGABOF8/phIN5doI=; b=jcRhOIEwyJbglwC6hY8sPf 6aZ6Y+dssM6xWTMYctvDexUaSfJhaTjGnCnreoIEssZslLQfEauPvL/s50idH94m /8hQl4nyAT9hvIobd27ozUf0VPfKqcQglqdOzggGJOFu8kT1h28EGg2pgd+tHJoH KFnLEKxSxwCqzIBnZb4XKp0zKdKUSpEcbNbF0HOjQG5S/d9IHI4aB4MGXwudcGT2 JoCpeuFisoQiA/zcD+aNGBKSL4qS5/fkS4Cld+8hpV2lgkTY1B+X0+tx72LHVJQa a+VYqpLpXNzjd/lGJRUnYtjtGGYHv76PjHLZDFPkj6LWR+Q6PXe7E/r5ztt36KOQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeghedgudegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffujghffffkgggtsehttdertddttddtnecuhfhrohhmpeevhhhrihhs thhirghnucfvihgvthiivgcuoehmvgestghhrhhishhtihgrnhhtihgvthiivgdruggvqe enucggtffrrghtthgvrhhnpeefkeehiefggeegieduvefgieeugfeutdehteelgeejtdek gfetgeegvdefjedvveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehmvgestghhrhhishhtihgrnhhtihgvthiivgdruggv X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 24 Jun 2021 15:40:54 -0400 (EDT) In-Reply-To: <87zgvffbg8.fsf@gnus.org> 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:208967 Archived-At: Sorry, I thought these were staples of the Emacs landscape with `wdired' being the ancestor of them all. You know that one? If no, check it out for in-place file renaming in dired listings, including rectangle-mode (or multiple cursors, if one prefers) changes. Not sure how to best implement this, and larger elisp code bases are hard to follow for me still; it sounds like a problem I'd tackle by storing the original, making an editable copy, then diffing the buffers on commit ([C-c C-c]) and apply the diffs per reference. In dired, apply line changes as renames; in wgrep, apply per-file diffs. Xref has file references for each item already, so I can imagine applying the changes might not be that difficult, since [r] offers replacement among all findings in a similar way, but only mass-replacements, not amendmends and free-form editing. This is my first contribution to the mailing list -- should I rephrase/add anything to my original email to clarify, or is there anything else I can do to help with filing this? I guess a better title would be: "Make project-find-refexp's xref-mode result buffer editable" instead of the complaint-like way I phrased it to make it sound like a 'bug'. Happy to follow along and help where I can! -- Christian