GNU bug report logs - #19829
25.0.50; query-replace in rectangle regions do not honor boundaries

Previous Next

Package: emacs;

Reported by: Bastien <bzg <at> gnu.org>

Date: Tue, 10 Feb 2015 15:00:02 UTC

Severity: normal

Merged with 20070, 20626

Found in versions 24.3, 25.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 19829 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Juri Linkov <juri <at> linkov.net>
Cc: Bastien <bzg <at> gnu.org>, 19829 <at> debbugs.gnu.org
Subject: Re: bug#19829: 25.0.50;
 query-replace in rectangle regions do not honor boundaries
Date: Thu, 12 Feb 2015 09:33:29 -0500
> 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".




This bug report was last modified 9 years and 195 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.