From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: History for query replace pairs Date: Sat, 04 Oct 2014 21:52:17 -0400 Message-ID: References: <87a97ejxuo.fsf@mail.jurta.org> <87lhovik5c.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412473967 31076 80.91.229.3 (5 Oct 2014 01:52:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Oct 2014 01:52:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 05 03:52:39 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xab02-0006TV-QR for ged-emacs-devel@m.gmane.org; Sun, 05 Oct 2014 03:52:38 +0200 Original-Received: from localhost ([::1]:45836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xab02-0005aQ-Fw for ged-emacs-devel@m.gmane.org; Sat, 04 Oct 2014 21:52:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xaazr-0005So-79 for emacs-devel@gnu.org; Sat, 04 Oct 2014 21:52:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xaazj-0002MO-NI for emacs-devel@gnu.org; Sat, 04 Oct 2014 21:52:27 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:18628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xaazj-0002ME-Jr for emacs-devel@gnu.org; Sat, 04 Oct 2014 21:52:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArQGAIDvNVNFxKjo/2dsb2JhbABZgwaDSsA9gRcXdIImAQEEJy8zCzQSFBgNiDDSGRePARaEIgSpGYFqg0wh X-IPAS-Result: ArQGAIDvNVNFxKjo/2dsb2JhbABZgwaDSsA9gRcXdIImAQEEJy8zCzQSFBgNiDDSGRePARaEIgSpGYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="91693924" Original-Received: from 69-196-168-232.dsl.teksavvy.com (HELO ceviche.home) ([69.196.168.232]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Oct 2014 21:52:17 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 97EF766088; Sat, 4 Oct 2014 21:52:17 -0400 (EDT) In-Reply-To: <87lhovik5c.fsf@lifelogs.com> (Ted Zlatanov's message of "Sat, 04 Oct 2014 17:45:35 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174977 Archived-At: T> So when you start a query-replace and press the up arrow then T> search/replace history is rendered as FROM -> TO pairs. The -> marker is T> highlighted and intangible, the cursor jumps over it and you are free to T> edit the search/replace string. If you submit a FROM->TO pair from the FROM T> input field with RET then the replacement is started immediately. If you T> submit a simple string (without the marker) then it behaves as usual and T> asks for a TO string. > I'd like to make this part of the Emacs core, disabled by default. I haven't found the time to look at the code, but the functionality described sounds good (a good way to provide a new feature while preserving the old behavior at the same time). So if someone can check that the code (and copyright) is clean, I'm OK with installing it into trunk. Stefan