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: Fri, 8 Aug 2014 13:28:21 -0700 (PDT) Message-ID: <0c33a8c0-af30-4bdd-b9a6-1607f89768da@default> References: 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 1407529738 17967 80.91.229.3 (8 Aug 2014 20:28:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2014 20:28:58 +0000 (UTC) To: Tom , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 08 22:28:51 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 1XFqmP-0006gy-SH for ged-emacs-devel@m.gmane.org; Fri, 08 Aug 2014 22:28:50 +0200 Original-Received: from localhost ([::1]:52961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFqmP-0008PB-9A for ged-emacs-devel@m.gmane.org; Fri, 08 Aug 2014 16:28:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFqmD-0008Le-Si for emacs-devel@gnu.org; Fri, 08 Aug 2014 16:28:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFqm4-0001Yr-9x for emacs-devel@gnu.org; Fri, 08 Aug 2014 16:28:37 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:20750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFqm4-0001YQ-3J for emacs-devel@gnu.org; Fri, 08 Aug 2014 16:28:28 -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 s78KSNvX003617 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 8 Aug 2014 20:28:24 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s78KSNhe012006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Aug 2014 20:28:23 GMT Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s78KSNbm005061; Fri, 8 Aug 2014 20:28:23 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [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:173490 Archived-At: > query-replace has a nice feature offering the previous > search/replacement pair as a default, to quickly repeat > the previous search/replace. I find it quite useful. >=20 > Often it would also be useful to quickly retrieve > other previous search/replacement pairs. I know I can > select them separately by selecting first the search string > from the history and then the replacement, but I find > that in most cases I want to use the same replacement which > I used previously for that search. >=20 > So a search/replacement pairs history would be quite useful, > it may even be more useful (more frequently used) and > more convenient than the current history if it were available. >=20 > The question is: how could it be integrated into the current > query-replace interface, that is how could the user choose > from a history of defaults (if he does not want to choose the > latest default which he can access with RET). You can access the history of those pairs using `C-x ESC ESC' (`repeat-complex-command'). But that is the history of all complex commands, so you might to cycle to the pair you want, or fish it out using, say, `M-r'.