From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Reiner Steib <4uce.02.r.steib@gmx.net> Newsgroups: gmane.emacs.help Subject: Re: line numbers Date: Wed, 08 Jan 2003 13:12:59 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042028226 6342 80.91.224.249 (8 Jan 2003 12:17:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2003 12:17:06 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18WF8p-0001dv-00 for ; Wed, 08 Jan 2003 13:17:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18WF7P-00033k-01 for gnu-help-gnu-emacs@m.gmane.org; Wed, 08 Jan 2003 07:15:35 -0500 Original-Newsgroups: gnu.emacs.help X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB; kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5259 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5259 On Tue, Jan 07 2003, Bruce Korb wrote: > Because sometimes I want to X-clip a block of text with line numbers > and email or print it. In the end, I fire up vi. Doing this in > emacs is too non-obvious. `C-u M-| nl RET' might be your friend (for e-mail). ,----[ C-h k M-| ] | M-| runs the command shell-command-on-region | which is an interactive compiled Lisp function in `simple'. | (shell-command-on-region START END COMMAND &optional OUTPUT-BUFFER | REPLACE ERROR-BUFFER) | | 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 | COMMAND. [...] `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/