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
> Here is a composite patch with implementation of rectangular regions
> based on three different use cases:
Looks pretty good, thanks.
> +(defun region ()
> + `(region
> + (positions ,@(funcall region-extract-function 'positions))))
I don't think we want such a short name. How 'bout `region-boundaries'?
Also, why `(region (positions ,@<foo>)) rather than something simpler
like `(region ,@<foo>)?
> -(defun query-replace (from-string to-string &optional delimited start end backward)
> +(defun query-replace (from-string to-string &optional delimited start end backward region)
[...]
> + (if (use-region-p) (region-beginning))
> + (if (use-region-p) (region-end))
> + (nth 3 common)
> + (if (use-region-p) (region)))))
I think we should re-use one of START or END rather than add a REGION argument.
Stefan
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.