GNU bug report logs - #20070
24.3; have commands such as downcase-region act on a rectangle region

Previous Next

Package: emacs;

Reported by: Pål Grønås Drange <paal.drange <at> gmail.com>

Date: Tue, 10 Mar 2015 02:20:02 UTC

Severity: normal

Merged with 19829, 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: Juri Linkov <juri <at> linkov.net>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Pål Grønås Drange <paal.drange <at> gmail.com>, 20070 <at> debbugs.gnu.org
Subject: bug#20070: 24.3; have commands such as downcase-region act on a rectangle region
Date: Wed, 25 Mar 2015 23:42:08 +0200
> I'm tempted to say that "r" should do (funcall region-extract-function
> 'positions), and fallback to passing the result as 2 separate positions
> if the result is a singleton list.

Then all unfixed commands will fail on the rectangular region,
but they do the wrong thing now anyway, so this is not a problem.

>                                     Also, if we change "r" then I think
> it might make sense to pass a special value in the second arg to be more
> explicit then just nil (e.g. pass :split-region).

Then the command signature could be changed from

  (downcase-region BEG END)

to e.g.

  (downcase-region REGION REGION-TYPE)

or maybe to signify their dual nature

  (downcase-region REGION-OR-BEG REGION-TYPE-OR-END)

and I see no better way to do this.




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.