I was working on adding a rectangular selection option to some of the
register functions we've been working on lately, when I ran across a
bug. None of the obvious functions for updating a zmacs-region will
check for a change in rectangular/streamwise selection mode.
It turned out this was largely due to (`zmacs-make-extent-for-region
') assuming that zmacs-region-rectangular-p reflected the current
stored value of zmacs-region-extent. I changed this, and added some
checks to let it reuse the existing extents in a rectangular region.
(It already reused the extent in the streamwise case.)
The one other change I made was for zmacs-update-region to update the
internal flag for rectangular selection whenever the region is valid.
Here's a patch to simple.el!
XEmacs-Beta mailing list