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

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

bug#19829: 25.0.50; query-replace in rectangle regions do not honor boun


From: Stefan Monnier
Subject: bug#19829: 25.0.50; query-replace in rectangle regions do not honor boundaries
Date: Thu, 12 Feb 2015 09:33:29 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> I wonder how do other commands that accept region-beginning/end
> process the rectangular region?

Well, there's the source code to help you find out, of course.
More seriously, the rectangle support (can be rect.el or cua-rect.el)
code sets up `region-extract-function' and commands that need to operate
on the region should then call `region-extract-function' instead of
relying on region-beginning/end.

Obviously, this infrastructure is not sufficient for query-replace, so
we'll need to add a `region-map-function` or something like that.


        Stefan


PS: when designing this interface I had in mind potential future
non-rectangular (and non-contiguous) regions, such as those that one can
define in some systems (e.g. file-managers) via "control-click".





reply via email to

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