From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Chunyang Xu Newsgroups: gmane.emacs.devel Subject: Re: Interactive query-replace Date: Fri, 10 Feb 2017 12:47:26 +0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486702079 16183 195.159.176.226 (10 Feb 2017 04:47:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2017 04:47:59 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 26.0.50.2 Cc: emacs-devel@gnu.org To: Ole Laursen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 10 05:47:52 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 1cc37P-00038x-HN for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2017 05:47:35 +0100 Original-Received: from localhost ([::1]:41796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc37V-0005WY-AI for ged-emacs-devel@m.gmane.org; Thu, 09 Feb 2017 23:47:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc37O-0005WS-Lj for emacs-devel@gnu.org; Thu, 09 Feb 2017 23:47:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc37L-0007Gg-Jd for emacs-devel@gnu.org; Thu, 09 Feb 2017 23:47:34 -0500 Original-Received: from smtpbgbr2.qq.com ([54.207.22.56]:58214) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cc37L-0007G7-7v for emacs-devel@gnu.org; Thu, 09 Feb 2017 23:47:31 -0500 X-QQ-mid: bizesmtp7t1486702043tk35dz6g2 Original-Received: from Chunyangs-MacBook-Air.local (unknown [114.236.198.223]) by esmtp4.qq.com (ESMTP) with id ; Fri, 10 Feb 2017 12:47:22 +0800 (CST) X-QQ-SSF: 0110000000000050F410B00A0000000 X-QQ-FEAT: 92FxZ2TPvnclhFPpaR+ux3zLsLmX5akOcZ2RstsWGonK4WxOgfZ7TSGN5jMuj Pd1dM+5pLCKP2iTLkYkfNe0BAVUbJawsNtC+vtmpo1QsPT8cRa6milWz9CPPHLn6d8LkI7M TuS2SDpoIwfYLoV7CKIwr+fFTbOpqzLqRdzcI5W8yQKLNcYUNBVOlT1C0VdnsawYzRo9Wxp DLDNTfBfYVQpZxHQ97iO3fEv/mdf3+AopFmrwqT0qDt09Zbl7idKB X-QQ-GoodBg: 0 In-reply-to: X-QQ-SENDSIZE: 520 X-QQ-Bgrelay: 1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 54.207.22.56 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:212195 Archived-At: (I replied a empty message a minute ago by accident, sorry about that) Ole Laursen writes: > 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. The search term is also interactive if you start your query-replace from isearch via the same keys (that is M-% ('isearch-query-replace')). I use this whenever I am not sure if my search pattern is correct.