[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: replace history is broken for empty strings and/or duplicate entries
From: |
Richard Stallman |
Subject: |
Re: replace history is broken for empty strings and/or duplicate entries |
Date: |
Tue, 23 Nov 2004 11:31:00 -0500 |
M-x replace-string RET {no history } x RET y RET
M-x replace-string RET {history: x -> y } z RET C-g
M-x replace-string RET {history: y -> z } (!)
One solution is to somehow indicate which entries were to-strings.
Then replace-string could find the last to-string
and the previous from-string, and use those two.
For instance, it could put a text property on every from-string,
or put a text property on every to-string. Then those properties
could be used to recognize the last complete pair.