From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: History for query replace pairs Date: Mon, 03 Nov 2014 08:30:54 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87sii0becx.fsf@lifelogs.com> References: <87a97ejxuo.fsf@mail.jurta.org> <87lhovik5c.fsf@lifelogs.com> <87wq8egh3r.fsf@lifelogs.com> <87ppe4zv0t.fsf@mail.jurta.org> <87k34ba5sn.fsf@mail.jurta.org> <87siiq4gpv.fsf@mail.jurta.org> <87iojduj9n.fsf@mail.jurta.org> <87k33nyirh.fsf@mail.jurta.org> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1415021490 16720 80.91.229.3 (3 Nov 2014 13:31:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2014 13:31:30 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 03 14:31:23 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 1XlHj8-00028n-DK for ged-emacs-devel@m.gmane.org; Mon, 03 Nov 2014 14:31:22 +0100 Original-Received: from localhost ([::1]:34745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlHj7-0002mG-Ur for ged-emacs-devel@m.gmane.org; Mon, 03 Nov 2014 08:31:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlHil-0002cE-Jl for emacs-devel@gnu.org; Mon, 03 Nov 2014 08:31:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlHif-0007fm-J7 for emacs-devel@gnu.org; Mon, 03 Nov 2014 08:30:59 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlHif-0007fV-D7 for emacs-devel@gnu.org; Mon, 03 Nov 2014 08:30:53 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XlHic-0001uN-5s for emacs-devel@gnu.org; Mon, 03 Nov 2014 14:30:50 +0100 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Nov 2014 14:30:50 +0100 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Nov 2014 14:30:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:rxlbXquLZ6H/87Jx84NvjZGzzuw= 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:176267 Archived-At: On Sat, 25 Oct 2014 23:52:18 +0300 Juri Linkov wrote: JL> If there is no way to save text properties then perhaps we should have JL> two history variables: one with cons pairs (FROM . TO) to save JL> in the desktop, and another with a list of strings "FROMTO" JL> to use in `read-from-minibuffer', and keep these two variables in sync. I like your POC. This feature seems stalled, is this issue the only thing blocking it? You could use a Unicode character (RIGHT ARROW → for instance), it's unlikely to occur in a normal search and replace, and could be specially encoded to "→→" in those cases. So you'd store "X→→Y→A→→→→B" to record FROM="X→Y" and TO="A→→B". It's an unambiguous encoding. If that's too hacky, let's find another way, and let me know how I can help. Thanks! Ted