bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#23484: 25.1.50; undo doesn't work properly in xref-query-replace-in-


From: Dmitry Gutov
Subject: bug#23484: 25.1.50; undo doesn't work properly in xref-query-replace-in-results
Date: Fri, 13 May 2016 01:01:53 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1

On 05/12/2016 11:57 PM, Juri Linkov wrote:

So I see your aim is to use regexp replacements without regexps,
i.e. with only a list of region boundaries like is used by
region-noncontiguous-p in perform-replace.

This may sound crazy, but shouldn't just using region-extract-function to return the list of region bounds work? FROM-STRING can then be `.*' without a problem.

I guess this could be
achieved with more hacking in real-match-data (maybe to use a layer
like replace-match-data).

A lot code in perform-replace is really beyond my comprehension, but why would the undo code muck around with replaying match data? It could just as well repeat the searches.





reply via email to

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