From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.devel Subject: History for query replace pairs Date: Fri, 8 Aug 2014 20:20:35 +0000 (UTC) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1407529284 12099 80.91.229.3 (8 Aug 2014 20:21:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2014 20:21:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 08 22:21:16 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 1XFqf3-0006Mp-C8 for ged-emacs-devel@m.gmane.org; Fri, 08 Aug 2014 22:21:13 +0200 Original-Received: from localhost ([::1]:52954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFqf2-0006uZ-V1 for ged-emacs-devel@m.gmane.org; Fri, 08 Aug 2014 16:21:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFqes-0006tM-Rp for emacs-devel@gnu.org; Fri, 08 Aug 2014 16:21:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFqek-0004sr-Sx for emacs-devel@gnu.org; Fri, 08 Aug 2014 16:21:02 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFqek-0004rn-MU for emacs-devel@gnu.org; Fri, 08 Aug 2014 16:20:54 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XFqeh-0005sw-3e for emacs-devel@gnu.org; Fri, 08 Aug 2014 22:20:51 +0200 Original-Received: from 94-21-19-218.pool.digikabel.hu ([94.21.19.218]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Aug 2014 22:20:51 +0200 Original-Received: from adatgyujto by 94-21-19-218.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Aug 2014 22:20:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 94.21.19.218 (Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0) 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:173489 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. 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. 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. 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).