From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: andrew.maguire@ps.ge.com Newsgroups: gmane.emacs.help Subject: RE: line numbers Date: Thu, 16 Jan 2003 12:24:48 -0500 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <6192367D59F8904CA553579EF41FEEA0465D26@ukcbgx01psge.geips.ge.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: main.gmane.org 1042738572 7515 80.91.224.249 (16 Jan 2003 17:36:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2003 17:36:12 +0000 (UTC) Cc: bkorb@veritas.com 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 18ZDvx-0001wG-00 for ; Thu, 16 Jan 2003 18:36:06 +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 18ZDvF-0007Ym-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 16 Jan 2003 12:35:21 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ZDsy-0006ru-00 for help-gnu-emacs@gnu.org; Thu, 16 Jan 2003 12:33:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ZDsV-0006f3-00 for help-gnu-emacs@gnu.org; Thu, 16 Jan 2003 12:32:33 -0500 Original-Received: from ext-ch1gw-3.online-age.net ([216.34.191.37]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ZDnK-0004pe-00 for help-gnu-emacs@gnu.org; Thu, 16 Jan 2003 12:27:10 -0500 Original-Received: from int-ch1gw-3.online-age.net (int-ch1gw-3 [3.159.232.67]) h0GHQvQH005486; Thu, 16 Jan 2003 12:26:57 -0500 (EST) Original-Received: from nyschx06psge.ps.ge.com (localhost [127.0.0.1]) id h0GHQlwH000426; Thu, 16 Jan 2003 12:26:48 -0500 (EST) Original-Received: by nyschx06psge.ps.ge.com with Internet Mail Service (5.5.2653.19) id ; Thu, 16 Jan 2003 12:29:23 -0500 Original-To: help-gnu-emacs@gnu.org X-Mailer: Internet Mail Service (5.5.2653.19) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:5566 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5566 > Lee Sau Dan wrote: > > >>>>>>"Bruce" == Bruce Korb writes: > > Bruce> Because sometimes I want to X-clip a block of text with > > Bruce> line numbers and email or print it. In the end, > I fire up > > Bruce> vi. Doing this in emacs is too non-obvious. > > > > M-< M-> M-| cat -n RET and then do whatever you like in > the *Shell > > Command Output* buffer. > > I find `C-x h' easier than `M-< M->'. See the "Marking > Objects" node in the > Emacs manual for similar useful commands. You could use Occur mode with a simple regexp, e.g. ".". Andrew