From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: Interactive query-replace Date: Thu, 09 Feb 2017 21:37:18 +0000 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c0939cec7257b05481fc998 X-Trace: blaine.gmane.org 1486676258 403 195.159.176.226 (9 Feb 2017 21:37:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2017 21:37:38 +0000 (UTC) To: Ole Laursen , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 09 22:37:34 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 1cbwPF-0008Ip-Sw for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2017 22:37:33 +0100 Original-Received: from localhost ([::1]:40332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbwPL-0002u9-HC for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2017 16:37:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbwPF-0002u2-FF for emacs-devel@gnu.org; Thu, 09 Feb 2017 16:37:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbwPE-0006LZ-EI for emacs-devel@gnu.org; Thu, 09 Feb 2017 16:37:33 -0500 Original-Received: from mail-ua0-x236.google.com ([2607:f8b0:400c:c08::236]:34427) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbwPE-0006LN-A6 for emacs-devel@gnu.org; Thu, 09 Feb 2017 16:37:32 -0500 Original-Received: by mail-ua0-x236.google.com with SMTP id 35so13753035uak.1 for ; Thu, 09 Feb 2017 13:37:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=KwC6hDb9Y54iMJ2yJh625Z7C4j6TTRrlLrSpNdXrNkU=; b=KanhqJkCrwmYozWT+EussrnE7ZFqyX2CtuEF5c1Vsza0NHu4vC/tX6EXoYeii5FNan /REPM6qQSCwfG72IR5Xot8m6FOXPVe05BvBufU2Q3wPHEvIKYKwFcPiywu/5vHmT1k3b ND10TIWT2b28C3+cq10WlTc256qqxz6QjjYYN1rtJkinNtc+lArBkKNXNYS/oAQrq/rn lrUzJIXDJHlXvEX+9RUfHhJsz2ORFUX6CeA720Qp/Vmy7QynJ+HY0Jf43PWjulyhmOEx 9rzm6233kS/kGT+p9RqZhrBdEYWldGKdreM/6UsK+b7qp0Yh7kQ6KqBwB3Bn1HPuq1Jl Qyiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=KwC6hDb9Y54iMJ2yJh625Z7C4j6TTRrlLrSpNdXrNkU=; b=OfDfakA0XbufdczK+MPZdtEzvuQklH/yrIP9iZpxBHUbcCzy4C3Y/yjG4MPML3BXLW vcF/SZET5azyicpYO1Futgil/fd9scVPLapSrbcA54lBCOJKyHmfVNAlx0kSg04liFcz tbBvRrFMoXA5TC3++mjULAXxlDv+O5vDHNbEKKT2Fkovzx8etwqHpKRy/oFeOLQNR3HS u5aNtkQ4wonH7jKG5qQmsfRN5m7H6FqzT2IwjYxKobp722Zh0NS8/TCLVABrwzVof2bn rPykcNsGomLajGzOaRjeFz0fYYGosm9IGfQrwVgjQb7EIhh4S7aVEAvOXuWbBaHRoIwY cA1Q== X-Gm-Message-State: AMke39nXi3mPvmdKtJJPL6cPU74AME4FDqwXZAyfoA7HghuvPE1mFH5Z0Tj3UJKS93Rdnx7JAnhLmjj1IIuYFQ== X-Received: by 10.176.66.66 with SMTP id i60mr2878432uai.131.1486676250008; Thu, 09 Feb 2017 13:37: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:400c:c08::236 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:212183 Archived-At: --94eb2c0939cec7257b05481fc998 Content-Type: text/plain; charset=UTF-8 On Thu, Feb 9, 2017 at 4:27 PM Ole Laursen wrote: > Hi! > > I realized the other day that search and replace in Emacs isn't very > interactive when a coworker showed me another editor he was > experimenting with. What he somehow did there seemed like something > Emacs would do when query-replacing, only it doesn't. > > Search and replace has three phases: > > - Enter search term > - Enter replacement term > - Confirmation > > Only confirmation is interactive in Emacs. > > The search phase could move the cursor and highlight all matches as > you type, just like isearch. Then we can see what we're about to > overwrite. > Looks like the multiple-cursors package ( https://github.com/magnars/multiple-cursors.el ) will do it. It's available via Melpa. -- Kaushal Modi --94eb2c0939cec7257b05481fc998 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Thu, Feb 9,= 2017 at 4:27 PM Ole Laursen <olau@iola.= dk> wrote:
Hi!

I realized the other day that search and replace in Emacs isn't very interactive when a coworker showed me another editor he was
experimenting with. What he somehow did there seemed like something
Emacs would do when query-replacing, only it doesn't.

Search and replace has three phases:

- Enter search term
- Enter replacement term
- Confirmation

Only confirmation is interactive in Emacs.

The search phase could move the cursor and highlight all matches as
you type, just like isearch. Then we can see what we're about to
overwrite.

Looks li= ke the multiple-cursors package ( https://github.com/magnars/multiple-cursors.el=C2=A0)= will do it. It's available via Melpa.=C2=A0
--

Kaushal Modi

--94eb2c0939cec7257b05481fc998--