From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#20626: Wishlist: M-x shell-command-on-rectangle-region Date: Wed, 24 Jun 2015 01:59:10 +0300 Organization: LINKOV.NET Message-ID: <87k2uuc9mx.fsf@mail.linkov.net> References: <527474961.10107734.1432245870451.JavaMail.zimbra@comcast.net> <87twv51raf.fsf@mail.linkov.net> <87fv5s4pm0.fsf@mail.linkov.net> <874mlzweri.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1435100663 13547 80.91.229.3 (23 Jun 2015 23:04:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2015 23:04:23 +0000 (UTC) Cc: 20626@debbugs.gnu.org, asparagus@comcast.net To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 24 01:04:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z7XEg-0000V9-HH for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Jun 2015 01:04:10 +0200 Original-Received: from localhost ([::1]:47782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7XEf-0004Tv-Io for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Jun 2015 19:04:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7XEb-0004TO-5E for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2015 19:04:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7XEY-0006je-QL for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2015 19:04:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7XEY-0006j0-Mt for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2015 19:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z7XEY-0007xa-7q for bug-gnu-emacs@gnu.org; Tue, 23 Jun 2015 19:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Jun 2015 23:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20626-submit@debbugs.gnu.org id=B20626.143510061430561 (code B ref 20626); Tue, 23 Jun 2015 23:04:02 +0000 Original-Received: (at 20626) by debbugs.gnu.org; 23 Jun 2015 23:03:34 +0000 Original-Received: from localhost ([127.0.0.1]:55638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7XE6-0007wq-6K for submit@debbugs.gnu.org; Tue, 23 Jun 2015 19:03:34 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:49443 helo=homiemail-a75.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7XE4-0007wi-2u for 20626@debbugs.gnu.org; Tue, 23 Jun 2015 19:03:33 -0400 Original-Received: from homiemail-a75.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a75.g.dreamhost.com (Postfix) with ESMTP id 252CF5EC082; Tue, 23 Jun 2015 16:03:31 -0700 (PDT) Original-Received: from localhost.linkov.net (m83-191-167-128.cust.tele2.ee [83.191.167.128]) (Authenticated sender: jurta@jurta.org) by homiemail-a75.g.dreamhost.com (Postfix) with ESMTPA id B81E15EC081; Tue, 23 Jun 2015 16:03:29 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Mon, 22 Jun 2015 22:02:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104281 Archived-At: > I still believe that shell-command-on-region should not have > rectangle-specific code. The current `region-extract-function' does le= t > 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 tha= t > 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). =E2=80=98shell-command-on-region=E2=80=99 currently relies on the call to (call-process-region start end shell-file-name replace ... but I'm not sure if =E2=80=98call-process-region=E2=80=99 is not too low = level to handle rectangular regions. Otherwise, there should be a condition in =E2=80=98shell-command-on-region=E2=80=99 to check for a rectangular r= egion and insert the output accordingly, so I see no way to avoid checking for =E2=80=98rectangle-mark-mode=E2=80=99 in =E2=80=98shell-command-on-region= =E2=80=99.