From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#20626: Wishlist: M-x shell-command-on-rectangle-region Date: Wed, 24 Jun 2015 23:45:16 -0400 Message-ID: References: <527474961.10107734.1432245870451.JavaMail.zimbra@comcast.net> <87twv51raf.fsf@mail.linkov.net> <87fv5s4pm0.fsf@mail.linkov.net> <874mlzweri.fsf@mail.linkov.net> <87k2uuc9mx.fsf@mail.linkov.net> <87fv5g4u73.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 1435203995 18008 80.91.229.3 (25 Jun 2015 03:46:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 03:46:35 +0000 (UTC) Cc: 20626@debbugs.gnu.org, asparagus@comcast.net To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 05:46:23 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 1Z7y7I-000588-Oj for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 05:46:20 +0200 Original-Received: from localhost ([::1]:53822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7y7I-0005FL-5A for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Jun 2015 23:46:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7y75-00052m-9Z for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2015 23:46:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7y71-00036t-Ou for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2015 23:46:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7y71-00036W-9o for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2015 23:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z7y70-00041R-S4 for bug-gnu-emacs@gnu.org; Wed, 24 Jun 2015 23:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jun 2015 03:46: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.143520392415405 (code B ref 20626); Thu, 25 Jun 2015 03:46:02 +0000 Original-Received: (at 20626) by debbugs.gnu.org; 25 Jun 2015 03:45:24 +0000 Original-Received: from localhost ([127.0.0.1]:56841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7y6N-00040P-Fi for submit@debbugs.gnu.org; Wed, 24 Jun 2015 23:45:23 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:27504) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7y6M-00040C-3g for 20626@debbugs.gnu.org; Wed, 24 Jun 2015 23:45:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A5FgA731xV/3+MCkxcgxCEAk6FB7tAh0sEAgKBPDsSAQEBAQEBAYEKQQWDXQEBAwEjMyMFCwkCGgIYDgICFBgNJIg3CI18nRCkFwEBAQcCAR+BIYoZhFIzB4JogUUBBLM/gUUjhBQigngBAQE X-IPAS-Result: A0A5FgA731xV/3+MCkxcgxCEAk6FB7tAh0sEAgKBPDsSAQEBAQEBAYEKQQWDXQEBAwEjMyMFCwkCGgIYDgICFBgNJIg3CI18nRCkFwEBAQcCAR+BIYoZhFIzB4JogUUBBLM/gUUjhBQigngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="128246353" Original-Received: from 76-10-140-127.dsl.teksavvy.com (HELO ceviche.home) ([76.10.140.127]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 24 Jun 2015 23:45:16 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 1828B660F3; Wed, 24 Jun 2015 23:45:16 -0400 (EDT) In-Reply-To: <87fv5g4u73.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 25 Jun 2015 01:27:18 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) 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:104324 Archived-At: > e.g. a list in the form =E2=80=98(rectangle =E2=80=A6)=E2=80=99. Then th= e command's body > will check the car of the arg REGION and act accordingly depending > on the region shape. Same difference. It'd still have rectangle-specific code. Instead it should call something like region-extract-function to do what it needs to do and *this* thing will have rectangle-specific code (via something like an add-function in rect.el). IIUC the current region-extract-function doesn't satisfy all the needs of shell-command-on-region, so either it will have to be extended again, or we have to add more region--function or equivalent methods. Stefan