From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: History for query replace pairs Date: Sat, 04 Oct 2014 17:45:35 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87lhovik5c.fsf@lifelogs.com> References: <87a97ejxuo.fsf@mail.jurta.org> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412459144 10222 80.91.229.3 (4 Oct 2014 21:45:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Oct 2014 21:45:44 +0000 (UTC) Cc: Tom To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 04 23:45:37 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 1XaX8z-0003eY-8f for ged-emacs-devel@m.gmane.org; Sat, 04 Oct 2014 23:45:37 +0200 Original-Received: from localhost ([::1]:45429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaX8y-00086x-TQ for ged-emacs-devel@m.gmane.org; Sat, 04 Oct 2014 17:45:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaX8a-00086s-2N for emacs-devel@gnu.org; Sat, 04 Oct 2014 17:45:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XaX8S-0002N3-Js for emacs-devel@gnu.org; Sat, 04 Oct 2014 17:45:12 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaX8S-0002MK-Dy for emacs-devel@gnu.org; Sat, 04 Oct 2014 17:45:04 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XaX8R-0003No-R3 for emacs-devel@gnu.org; Sat, 04 Oct 2014 23:45:03 +0200 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Oct 2014 23:45:03 +0200 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Oct 2014 23:45:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:e4/KVh810fGYzv3nGPkIRnNr4eg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:174972 Archived-At: On Mon, 11 Aug 2014 20:34:33 +0200 Tom wrote: T> I created a quick proof of concept implementation. It changes the behavior T> of the arrow keys for the query-replace(-regexp) FROM prompt. You can stll T> access the original behavior with M-p/n. 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. Any objections? I think it's nicer-looking than the current UI. If not, maybe Tom would like to make it a GNU ELPA package? Ted