From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: Sending marked text to external program? Date: Fri, 14 Mar 2008 19:13:13 +0200 Organization: SunSITE.dk - Supporting Open source Message-ID: <87skyt9ql2.fsf@kobe.laptop> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205550993 4319 80.91.229.12 (15 Mar 2008 03:16:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Mar 2008 03:16:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 15 04:17:01 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JaMtJ-0007rD-EG for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Mar 2008 04:17:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JaMsk-0006fN-0M for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Mar 2008 23:16:26 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!uio.no!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) Cancel-Lock: sha1:jEcx3taNNuky3mClPGaxQfpYQus= Original-Lines: 15 Original-NNTP-Posting-Host: 62.1.205.36 Original-X-Trace: news.sunsite.dk DXC=a[0d_T@Z>YLa0CAcDd; B0AYSB=nbEKnkKebg1>^?UCAJL^MjGl4=h[MC00XN@KQn5@bBE2IjKRdclgG]7O Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:157047 X-Mailman-Approved-At: Fri, 14 Mar 2008 23:11:49 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52421 Archived-At: On Fri, 14 Mar 2008 17:00:10 +0100, Uwe Scholz wrote: > Hello all! > > I wondered if it is possible to mark a peace of text or a hole line end > send it to an external programm, for example "boxes", and include the > output in the active buffer (or maybe a new one). > > Is this possible? If yes, how? Does a shortcut exist for this task? `C-u M-|' runs `shell-command-on-region'. If you use M-| without a prefix argument, it shows the output of the external filter command in a new buffer. If you run `C-u M-|', then the output of the filter command replaces the region in the current buffer.