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: Sat, 09 Aug 2014 02:38:15 +0300 Organization: JURTA Message-ID: <87a97ejxuo.fsf@mail.jurta.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1407545432 25016 80.91.229.3 (9 Aug 2014 00:50:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2014 00:50:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tom Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 09 02:50: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 1XFurZ-0007h6-DY for ged-emacs-devel@m.gmane.org; Sat, 09 Aug 2014 02:50:25 +0200 Original-Received: from localhost ([::1]:53666 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFurY-0005GE-Tm for ged-emacs-devel@m.gmane.org; Fri, 08 Aug 2014 20:50:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFurN-0005FD-CH for emacs-devel@gnu.org; Fri, 08 Aug 2014 20:50:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFurF-0002zi-Sy for emacs-devel@gnu.org; Fri, 08 Aug 2014 20:50:13 -0400 Original-Received: from alc-vshost7.dreamhost.com ([69.163.216.107]:33069 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFurF-0002vU-OK for emacs-devel@gnu.org; Fri, 08 Aug 2014 20:50:05 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id C90AC376017F94; Fri, 8 Aug 2014 17:50:00 -0700 (PDT) In-Reply-To: (Tom's message of "Fri, 8 Aug 2014 20:20:35 +0000 (UTC)") 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 2.2.x-3.x (no timestamps) [generic] X-Received-From: 69.163.216.107 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:173499 Archived-At: > 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). Since the default values are displayed in a special format using an arrow Query replace (default from1 -> to1): a history navigation key should bring the pair into the minibuffer in the same format like Query replace (default from1 -> to1): from2 -> to2 Then the user has to be careful to not remove the arrow while editing the inserted values in the minibuffer. Another problem is how to parse such format when a from/to value contains the arrow "->" Query replace (default from1 -> to1): from2 -> from2 -> to2 -> to2