From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: History for query replace pairs Date: Tue, 14 Oct 2014 22:02:52 +0300 Organization: JURTA Message-ID: <87siiq4gpv.fsf@mail.jurta.org> References: <87a97ejxuo.fsf@mail.jurta.org> <87lhovik5c.fsf@lifelogs.com> <87wq8egh3r.fsf@lifelogs.com> <87ppe4zv0t.fsf@mail.jurta.org> <87k34ba5sn.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413313689 30591 80.91.229.3 (14 Oct 2014 19:08:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2014 19:08:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 14 21:08:01 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 1Xe7Rw-0002xQ-4D for ged-emacs-devel@m.gmane.org; Tue, 14 Oct 2014 21:08:00 +0200 Original-Received: from localhost ([::1]:40036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe7Rv-0001vl-Gd for ged-emacs-devel@m.gmane.org; Tue, 14 Oct 2014 15:07:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe7RW-0001vd-9a for emacs-devel@gnu.org; Tue, 14 Oct 2014 15:07:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe7RQ-0008Al-5U for emacs-devel@gnu.org; Tue, 14 Oct 2014 15:07:34 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.222.226]:39723 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe7RQ-00089r-0k for emacs-devel@gnu.org; Tue, 14 Oct 2014 15:07:28 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 0A0A136A308ABA; Tue, 14 Oct 2014 12:07:25 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 14 Oct 2014 13:14:03 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.163.222.226 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:175365 Archived-At: >>> So the first RET will actually do almost the same as TAB would do >>> in the two-field minibuffer to switch to editing the TO part. >> This is the minimal patch to implement this. Opinions? > > I think this is "too minimal". I much prefer the UI where you get both > FROM and TO at the same time in the minibuffer. There are two ways to get both FROM and TO in the minibuffer: 1. On typing some key in the FROM reading minibuffer, insert the second field TO with a read-only separator between FROM and TO. 2. Display both FROM and TO initially. Then to use RET or TAB to switch from FROM to TO, and S-TAB to switch back from TO to FROM. But the main question in both cases which key to use to browse FROM-TO pairs from the minibuffer's history? It seems both M-p and should still get either FROM or TO from the history one by one, so it would be easy to reuse a previous TO for the FROM part (to invert replacements). What about ?