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


View this message in rfc822 format

From: Robert Pluim <rpluim <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 49208 <at> debbugs.gnu.org, Christian Tietze <me <at> christiantietze.de>
Subject: bug#49208: 28.0.50; project-find-regexp's xref-mode result buffer is not editable
Date: Thu, 24 Jun 2021 18:29:24 +0200
>>>>> On Thu, 24 Jun 2021 18:04:58 +0200, Lars Ingebrigtsen <larsi <at> gnus.org> said:

    Lars> "Christian Tietze" <me <at> christiantietze.de> writes:
    >> TL;DR: The `xref-mode' results of `project-find-regexp' are not editable. Something like `occur-edit-mode' is missing. 
    >> 
    >> 1) Open a project via C-x p p
    >> 2) Select 'g' to find in project (project-find-regexp)
    >> 3) Search for a phrase that produces results
    >> 4) In the resulting Xref buffer, try to edit the results

    Lars> Like grep, occur and many other similar commands, xref-mode is a
    Lars> special-mode buffer, and those buffers seldom allow any sort of
    Lars> editing.  But if you want to, you can hit `C-x C-q' and then edit
    Lars> however much you want (in any of these modes).

    Lars> So I'm not sure I quite understand the feature request.

You want to edit the buffer so that when you 'apply' the resulting
changed buffer, emacs reflects those changes in the original files.

See eg wgrep:

    ## Summary:

    wgrep allows you to edit a grep buffer and apply those changes to
    the file buffer like `sed` interactively. No need to learn sed
    script, just learn Emacs.

Robert
-- 




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.