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


View this message in rfc822 format

From: Richard Stallman <rms <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: bzg <at> gnu.org, monnier <at> iro.umontreal.ca, 19829 <at> debbugs.gnu.org
Subject: bug#19829: 25.0.50; Design of commands operating on rectangular regions
Date: Tue, 07 Jul 2015 17:27:50 -0400
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > +(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?

(I ask because there's a different function for rectangles,
so this function won't be used with a list of lines for rectangles.)

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.





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.