From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#52815: Editable grep buffer Date: Wed, 29 Dec 2021 12:51:59 -0800 Message-ID: References: <-A0G14QC69c60rBlKL90_BCjTD4WA8Gza7BCXaipOmLvsf7QqahA3fccjk9a2S_nYrYklM9z93VykcczMHUPEjcz8WAf1Nrz_b59t5GPEzA=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28920"; mail-complaints-to="usenet@ciao.gmane.io" Cc: laszlomail@protonmail.com, 52815@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 29 21:53:12 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 1n2fwd-0007HT-Mn for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 21:53:11 +0100 Original-Received: from localhost ([::1]:44470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2fwb-0007mr-RU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 15:53:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2fwU-0007mU-Ai for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 15:53:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38907) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2fwU-0003kV-1u for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 15:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2fwT-0004KC-SX for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 15:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Dec 2021 20:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52815 X-GNU-PR-Package: emacs Original-Received: via spool by 52815-submit@debbugs.gnu.org id=B52815.164081112716543 (code B ref 52815); Wed, 29 Dec 2021 20:53:01 +0000 Original-Received: (at 52815) by debbugs.gnu.org; 29 Dec 2021 20:52:07 +0000 Original-Received: from localhost ([127.0.0.1]:50453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2fvb-0004Il-Ba for submit@debbugs.gnu.org; Wed, 29 Dec 2021 15:52:07 -0500 Original-Received: from mail-pj1-f50.google.com ([209.85.216.50]:54233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2fvZ-0004IH-G9 for 52815@debbugs.gnu.org; Wed, 29 Dec 2021 15:52:06 -0500 Original-Received: by mail-pj1-f50.google.com with SMTP id mj19so19441559pjb.3 for <52815@debbugs.gnu.org>; Wed, 29 Dec 2021 12:52:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=VL03NZUxPKW8aRS50EpvjXCOGVDWLOpDkKX/nUxhULM=; b=MHtdNnbVyUouNr+wmuw8S4vgQ1QlBvYP5bivskGCn5V+WfDywwSR2NoVPAeVxyeuWA VMMlxBD4OoVFafR4Bw5zjhGMq9YX9O7xI/4+4U0wslzr+R7tRxqLmWoxIrroBwwDS+1A eajw63TR4bGjuWxB6+nLgBjOeNt475PUvy/0y/DuFJJjIEqWosLF6SmrWkPDKJugzOgM x4N14SltYi4LjiBJDIIrnZ61Rn4Rl8RBUMPJXupLCIQ6SLY7jgQt8Pw5ss+TCMvasqaZ w8QK15Gk+idb+cNI4YOcZi/BWcZEjqMnD4PKwSRqntuWm46om3V08Oue8FHStRMBQ51O iJGw== X-Gm-Message-State: AOAM532r+m/0++JqTUTlqOO5M4ZrabaYK/VPb75V8rkPYgGY0+Q9GmAq 0Kqs8HVS+w/8Bgk+sSdyVoGlZB3faC7Khlkddfk= X-Google-Smtp-Source: ABdhPJyVyaqm/DnDkJEnRpEDkv1QUznTYY2tHj39cvImiVQK+tDk3CprPgD5hx9xZ0Tdo7oEOO9eKMEaHLxpWsO+5lU= X-Received: by 2002:a17:90b:1646:: with SMTP id il6mr34064883pjb.143.1640811119796; Wed, 29 Dec 2021 12:51:59 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 29 Dec 2021 12:51:59 -0800 In-Reply-To: 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:223381 Archived-At: Richard Stallman writes: > I can see two meanings for "the original locations" -- does it mean > the locations stated in the edited grep output, or does it mean the locations > that _were_ stated in the original grep output (before editing it)? > > If it is the former, then can't you do this with C-u C-x ` ? > I just tried it and it worked. C-u C-x ` reparses the error locations > in the buffer. This is not what wgrep.el does, so this bug report is not about that. > Actually editing the text in the Grep mode buffer is a nuisance, since > many self-inserting characters do unusual things. But that is a > different issue. This is the issue we are discussing here, as that is what wgrep does. It works well in practice, analogous to how wdired works but it edits multiple files. You enter wgrep-mode from grep-mode to make your edits with `C-x C-q', edit the text of the buffer and then type `C-x C-s' to save your changes to the relevant files. This is very similar to wdired.