[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: History for query replace pairs

From: Ted Zlatanov
Subject: Re: History for query replace pairs
Date: Mon, 03 Nov 2014 08:30:54 -0500
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

On Sat, 25 Oct 2014 23:52:18 +0300 Juri Linkov <address@hidden> 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 "FROM<separator>TO"
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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]