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 #21 received at 49208 <at> debbugs.gnu.org (full text, mbox):

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




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.