GNU bug report logs - #49208
28.0.50; project-find-regexp's xref-mode result buffer is not editable

Previous Next

Package: emacs;

Reported by: "Christian Tietze" <me <at> christiantietze.de>

Date: Thu, 24 Jun 2021 13:50:01 UTC

Severity: normal

Found in version 28.0.50

Full log


Message #24 received at 49208 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Christian Tietze <me <at> christiantietze.de>
Cc: 49208 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>,
 Robert Pluim <rpluim <at> gmail.com>
Subject: Re: 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
> 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.




This bug report was last modified 4 years and 52 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.