GNU bug report logs -
#19829
25.0.50; query-replace in rectangle regions do not honor boundaries
Previous Next
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
View this message in rfc822 format
> > +(defvar region-insert-function
> > + (lambda (lines)
> > + (let ((first t))
> > + (while lines
> > + (or first
> > + (insert ?\n))
> > + (insert-for-yank (car lines))
> > + (setq lines (cdr lines)
> > + first nil))))
> > + "Function to insert the region's content.
> > +Called with one argument LINES.
> > +Insert the region as a list of lines.")
>
> What is the meaning of a list of lines as the region
> if it is NOT a rectangle? What would that kind of region mean,
> and when would it be used?
Actually this function is not intended for a rectangle. It's a generic
implementation that works like `insert-for-yank' currently does.
But it uses a list of lines as its argument for compatibility with
the existing `cua--insert-rectangle' and the new proposed
`rectangle--insert-region' (that uses the existing `insert-rectangle')
and that both of them accept a list of lines as their argument.
> (I ask because there's a different function for rectangles,
> so this function won't be used with a list of lines for rectangles.)
The generic `region-insert-function' needs to have the same argument
(i.e. a list of lines) for the case when it's overridden by one of the
rectangle-handling functions. But its generic implementation inserts
a list of lines the same way as `insert-for-yank' inserts a single
string where lines are separated by newlines.
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.