From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: History for query replace pairs Date: Tue, 14 Oct 2014 19:13:19 +0000 Message-ID: <20141014191319.GA6148@acm.acm> References: <87lhovik5c.fsf@lifelogs.com> <87wq8egh3r.fsf@lifelogs.com> <87ppe4zv0t.fsf@mail.jurta.org> <87k34ba5sn.fsf@mail.jurta.org> <87siiq4gpv.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1413314372 6902 80.91.229.3 (14 Oct 2014 19:19:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2014 19:19:32 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 14 21:19:25 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 1Xe7cy-0000Zz-8Z for ged-emacs-devel@m.gmane.org; Tue, 14 Oct 2014 21:19:24 +0200 Original-Received: from localhost ([::1]:40119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe7cx-0004Uk-RF for ged-emacs-devel@m.gmane.org; Tue, 14 Oct 2014 15:19:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe7co-0004UM-3x for emacs-devel@gnu.org; Tue, 14 Oct 2014 15:19:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe7cg-0003vX-G6 for emacs-devel@gnu.org; Tue, 14 Oct 2014 15:19:14 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:33534 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe7cg-0003vN-0J for emacs-devel@gnu.org; Tue, 14 Oct 2014 15:19:06 -0400 Original-Received: (qmail 16118 invoked by uid 3782); 14 Oct 2014 19:19:02 -0000 Original-Received: from acm.muc.de (pD951B6B5.dip0.t-ipconnect.de [217.81.182.181]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 14 Oct 2014 21:19:01 +0200 Original-Received: (qmail 6213 invoked by uid 1000); 14 Oct 2014 19:13:20 -0000 Content-Disposition: inline In-Reply-To: <87siiq4gpv.fsf@mail.jurta.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 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:175366 Archived-At: Hello, Juri. On Tue, Oct 14, 2014 at 10:02:52PM +0300, Juri Linkov wrote: > >>> 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. How about, simply, TAB to switch to the other field? S-TAB doesn't exist on a tty. This would create a slight inconsistency with C-s, where TAB is a self-inserting character. > 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 ? M-up doesn't exist on a tty either. -- Alan Mackenzie (Nuremberg, Germany).