From: Juri Linkov <juri@linkov.net>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: 20626@debbugs.gnu.org, asparagus@comcast.net
Subject: bug#20626: Wishlist: M-x shell-command-on-rectangle-region
Date: Thu, 25 Jun 2015 01:27:18 +0300 [thread overview]
Message-ID: <87fv5g4u73.fsf@mail.linkov.net> (raw)
In-Reply-To: <jwv381ihtrd.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Tue, 23 Jun 2015 19:50:22 -0400")
>> 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’.
>
> In any case checking specifically for a rectangular region is wrong.
> Having a "fast-path" for the case of a simple contiguous region is fine,
> but the "slow&complex" path is not just for rectangular regions:
> the code should also work with a region made up of various
> arbitrary chunks (there's currently no package that provides this
> feature, but that's no excuse).
Then what about adding a new arg REGION to ‘shell-command-on-region’
and other region-sensitive commands that will provide the region
configuration including information about region type and region shape,
e.g. a list in the form ‘(rectangle …)’. Then the command's body
will check the car of the arg REGION and act accordingly depending
on the region shape.
next prev parent reply other threads:[~2015-06-24 22:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1119163948.10099018.1432245074823.JavaMail.zimbra@comcast.net>
2015-05-21 22:04 ` bug#20626: Wishlist: M-x shell-command-on-rectangle-region asparagus
2015-05-21 22:47 ` Juri Linkov
2015-06-15 21:45 ` Juri Linkov
2015-06-22 22:37 ` Juri Linkov
2015-06-23 2:02 ` Stefan Monnier
2015-06-23 22:59 ` Juri Linkov
2015-06-23 23:50 ` Stefan Monnier
2015-06-24 22:27 ` Juri Linkov [this message]
2015-06-25 3:45 ` Stefan Monnier
2015-06-25 22:30 ` Juri Linkov
2015-06-26 1:53 ` Stefan Monnier
2015-06-30 20:44 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fv5g4u73.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=20626@debbugs.gnu.org \
--cc=asparagus@comcast.net \
--cc=monnier@IRO.UMontreal.CA \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).