GNU bug report logs -
#20626
Wishlist: M-x shell-command-on-rectangle-region
Previous Next
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
> (defun shell-command-on-region (start end command
> &optional output-buffer replace
> - error-buffer display-error-buffer)
> + error-buffer display-error-buffer
> + region)
> "Execute string COMMAND in inferior shell with region as input.
> Normally display output (if any) in temp buffer `*Shell Command Output*';
> Prefix arg means replace the region with it. Return the exit code of
> @@ -3337,7 +3342,8 @@ (defun shell-command-on-region (start end command
> current-prefix-arg
> current-prefix-arg
> shell-command-default-error-buffer
> - t)))
> + t
> + rectangle-mark-mode)))
Doesn't make sense: if the value determine the use of rectangles, the
arg shouldn't be called `region' but something like `rectangle'.
Notice how kill-ring-save takes a `region' argument and doesn't have any
rectangle-specific code.
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).
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.