GNU bug report logs - #20626
Wishlist: M-x shell-command-on-rectangle-region

Previous Next

Package: emacs;

Reported by: asparagus <at> comcast.net

Date: Thu, 21 May 2015 22:05:02 UTC

Severity: normal

Merged with 19829, 20070

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: 20626 <at> debbugs.gnu.org, asparagus <at> comcast.net
Subject: bug#20626: Wishlist: M-x shell-command-on-rectangle-region
Date: Wed, 24 Jun 2015 01:59:10 +0300
> I still believe that shell-command-on-region should not have
> rectangle-specific code.  The current `region-extract-function' does let
> you extract the region (rectangular or not) in order to pass it to
> a shell command.  So you don't need any rectangle-specific code for that
> part of shell-command-on-region.
> OTOH There is indeed some functionality missing there to let you insert
> the output in a rectangular way (whatever that means).

‘shell-command-on-region’ currently relies on the call to

   (call-process-region start end shell-file-name replace ...

but I'm not sure if ‘call-process-region’ is not too low level
to handle rectangular regions.  Otherwise, there should be a condition
in ‘shell-command-on-region’ to check for a rectangular region and
insert the output accordingly, so I see no way to avoid checking for
‘rectangle-mark-mode’ in ‘shell-command-on-region’.




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.