From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ole Laursen Newsgroups: gmane.emacs.devel Subject: Re: Interactive query-replace Date: Thu, 9 Feb 2017 23:27:30 +0100 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1486679283 5678 195.159.176.226 (9 Feb 2017 22:28:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2017 22:28:03 +0000 (UTC) Cc: Ole Laursen To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 09 23:27:56 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbxBz-00010h-1z for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2017 23:27:55 +0100 Original-Received: from localhost ([::1]:40568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbxC3-00067i-3N for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2017 17:27:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbxBw-000676-KM for emacs-devel@gnu.org; Thu, 09 Feb 2017 17:27:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbxBv-00050S-PA for emacs-devel@gnu.org; Thu, 09 Feb 2017 17:27:52 -0500 Original-Received: from mail-qk0-x232.google.com ([2607:f8b0:400d:c09::232]:33378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbxBv-0004zi-L9 for emacs-devel@gnu.org; Thu, 09 Feb 2017 17:27:51 -0500 Original-Received: by mail-qk0-x232.google.com with SMTP id s140so20817871qke.0 for ; Thu, 09 Feb 2017 14:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iola-dk.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=UDsXTd6jMRj+f4mgz38fsFzFQzJOVfQxaUTAJPlcDE4=; b=B/WMCkMB9w9ikZgy2audR4tJSZmkujCBVYM3/aQ/hszDJDKKsbeDEbH2Ds+96ReJO6 TVaRW+Zz+tkHYFhiGCIovvUYx35hblyRpY+7wkgZMFA0oLNPBgvY3difikZ3Q89/ShHI h+x8nGnCDkBBr6tAgozFty47uYMfBYiGkX38QlNuiCW2Vq9Emf4/iyEVeCZQzpzy34Ko nJl2hjkXcdGlSu2T59SJDgJNkonI/GNXjozzAafGQwIcmYIF4HZoPVSw72LopVykN1ZR jYrkJmjCXVbK949lsVYfzHdJ7eHbc6hKp8PAWM18ZCFwCCwdELVvwBo6m+R21a3ewUZc XeUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UDsXTd6jMRj+f4mgz38fsFzFQzJOVfQxaUTAJPlcDE4=; b=WCyIXGaAyjQzasZP9LqBZL2iW3Kio2qmZPBx70QDr47b6xuon5mRdu7saMVf4SnoRe /KycbF1uhjhufESu/Gfm5PjwpUp1qM6TJzK3NunlWqpx5/FTuk4e4gQgBFAASgrgyJn0 RfHPf4Mf8qeAmnRYNgJZg0evt0J0/CstxrGHawKT0UDkdNgDFvY++HqL9jU4RG0K4hBB A6X49ngJrY48brQC9YbZRKESDw4ocAXoJa6D2CVi3n48DjN4VsCWvOsko9uYbOrFjoBS YdLfNXR6K8VYQS0qaPK1dfbG1wDVuCBCnz0Ia48iA7YAB8Z63DaqmYO7Y0JLTHsJccxp 6blQ== X-Gm-Message-State: AMke39maowWQS2WTMB5IVsinOVsieC2tN7ezG8aJK1OhV4vCdVOVJRUvOq59QReugwsGTA8fpLgq3KifsXHuww== X-Received: by 10.55.3.22 with SMTP id 22mr5815417qkd.282.1486679270595; Thu, 09 Feb 2017 14:27:50 -0800 (PST) Original-Received: by 10.12.138.23 with HTTP; Thu, 9 Feb 2017 14:27:30 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212187 Archived-At: 2017-02-09 22:42 GMT+01:00 Cl=C3=A9ment Pit-Claudel = : > On 2017-02-09 16:27, Ole Laursen wrote: >> Doesn't this sound like something Emacs should be doing? > > I think you'll like https://github.com/benma/visual-regexp.el :) Thanks for the suggestions! I have installed both. Multiple cursors is a bit too general/fiddly for this problem I think, although the concept seems useful for solving problems that otherwise call for a keyboard macro and apply-macro-to-region-lines. As for visual-regexp, after setting vr/default-replace-preview to t, vr/query-replace seems to do what I'm suggesting. Neat. Would it make sense to integrate behavior like this into stock Emacs? Ole