From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: History for query replace pairs Date: Tue, 14 Oct 2014 13:16:39 -0700 (PDT) Message-ID: <73ac8eba-f16d-4bbf-a32e-a237be15ab73@default> References: <87lhovik5c.fsf@lifelogs.com> <87wq8egh3r.fsf@lifelogs.com> <87ppe4zv0t.fsf@mail.jurta.org> <87k34ba5sn.fsf@mail.jurta.org> <87siiq4gpv.fsf@mail.jurta.org> <20141014191319.GA6148@acm.acm> <8738aq308u.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1413317831 18396 80.91.229.3 (14 Oct 2014 20:17:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2014 20:17:11 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov , Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 14 22:17:04 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 1Xe8Wl-0005kp-VI for ged-emacs-devel@m.gmane.org; Tue, 14 Oct 2014 22:17:04 +0200 Original-Received: from localhost ([::1]:40299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8Wl-0008Sq-HC for ged-emacs-devel@m.gmane.org; Tue, 14 Oct 2014 16:17:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8Wa-0008Rf-DG for emacs-devel@gnu.org; Tue, 14 Oct 2014 16:17:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe8WR-0006ao-M6 for emacs-devel@gnu.org; Tue, 14 Oct 2014 16:16:52 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:39115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe8WR-0006ak-Fl for emacs-devel@gnu.org; Tue, 14 Oct 2014 16:16:43 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s9EKGgnD016233 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 14 Oct 2014 20:16:42 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s9EKGfDn026284 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Oct 2014 20:16:42 GMT Original-Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s9EKGehe002934; Tue, 14 Oct 2014 20:16:40 GMT In-Reply-To: <8738aq308u.fsf@mail.jurta.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:175371 Archived-At: FWIW, it sounds to me like you are complicating things for no real gain. When you are all done fiddling with this, count the keystrokes needed for a user to take advantage of your new dream behavior... Keep it simple. And just what is the problem that this is trying to solve? Are you trying to find a way to give users easy access to previous replacement pairs? We already have that, no? If you want to reuse a previous old/new replacement pair, just use `C-x ESC ESC'. You have `M-p' or `M-r' to choose which previous pair to reuse. And you can edit such a choice. What's the problem? --- With a reasonable extension to allow completion on demand against the minibuffer history (with Icicles you can use `M-o' to do that, for example), you could also complete-match against past inputs. (And yes, it should be on-demand - past inputs as completion candidates should not just be mixed in with the current set of completion candidates.) It might be better to spend a little time to provide such a past-inputs completion feature than to monkey around adding keys to maneuver among past input pairs they way you seem to be doing. Just a suggestion.