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#49208: 28.0.50; project-find-regexp's xref-mode result buffer is not editable Date: Thu, 24 Jun 2021 23:52:37 +0300 Organization: LINKOV.NET Message-ID: <871r8r3rze.fsf@mail.linkov.net> 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="27668"; 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: 49208@debbugs.gnu.org, Lars Ingebrigtsen , Robert Pluim To: Christian Tietze Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 24 22:55:19 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 1lwWNb-00076D-8k for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Jun 2021 22:55:19 +0200 Original-Received: from localhost ([::1]:35626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwWNa-00079V-AM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Jun 2021 16:55:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwWNL-00079A-3j for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 16:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwWNK-0002cm-RH for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 16:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lwWNK-0004cm-I6 for bug-gnu-emacs@gnu.org; Thu, 24 Jun 2021 16:55: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: Thu, 24 Jun 2021 20:55: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.162456804617644 (code B ref 49208); Thu, 24 Jun 2021 20:55:02 +0000 Original-Received: (at 49208) by debbugs.gnu.org; 24 Jun 2021 20:54:06 +0000 Original-Received: from localhost ([127.0.0.1]:44218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwWMQ-0004aW-02 for submit@debbugs.gnu.org; Thu, 24 Jun 2021 16:54:06 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:37601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwWMN-0004Zq-L5 for 49208@debbugs.gnu.org; Thu, 24 Jun 2021 16:54:04 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 5B4EE240009; Thu, 24 Jun 2021 20:53:54 +0000 (UTC) In-Reply-To: (Christian Tietze's message of "Thu, 24 Jun 2021 21:40:51 +0200") 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:208971 Archived-At: > 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. I don't know the details of wgrep and occur-edit-mode, but I guess that after adding an option to specify the format of the xref output buffer (instead of the hard-coded xref--insert-xrefs), choosing an option to use a grep-like output format will allow wgrep to edit it, and choosing an option to use an occur-like output format will allow occur-edit-mode to edit it.