all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
Subject: Re: line numbers
Date: Mon, 01 May 2006 05:43:25 +0300	[thread overview]
Message-ID: <86bquiv50y.fsf@gothmog.pc> (raw)
In-Reply-To: 87zmi2iuhi.fsf@localhost.localdomain

On 01 May 2006 08:11:53 +1000, Gary Wessle <phddas@yahoo.com> wrote:
> Hi
> who can I place numbers of lines to the left of a paragraph so when I
> copy/paste, the numbers stays with the text?

I don't know if there's an easier way, but I usually filter the
buffer through ``cat -n'' and copy the resulting numbered lines
that I need.

	M-< M-> C-u M-| cat -n RET

	;; beginning-of-buffer
	;; end-of-buffer
	;; prefix , shell-command-on-region "cat -n"

When a prefix is passed to it (even an empty prefix), the
shell-command-on-region command runs the shell command, passing
the region as plain text input to it, and then replaces the
region with the output of the shell command.

- Giorgos

  reply	other threads:[~2006-05-01  2:43 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-30 22:11 line numbers Gary Wessle
2006-05-01  2:43 ` Giorgos Keramidas [this message]
2006-05-01  3:55   ` Cameron Desautels
     [not found]   ` <mailman.1166.1146455721.9609.help-gnu-emacs@gnu.org>
2006-05-02  9:42     ` Gary Wessle
2006-05-01  6:33 ` Fredrik Bulow
2006-05-01  6:39 ` Burton Samograd
     [not found] <mailman.2202.1338745946.855.help-gnu-emacs@gnu.org>
2012-06-03 19:36 ` Dan Espen
2012-06-04  2:23   ` rusi
2012-06-04  6:23 ` Christian Kellermann
  -- strict thread matches above, loose matches on Subject: below --
2012-06-03 17:36 Andrew Michael Levin
2012-06-03 17:55 ` Michaël Bruneel
2012-06-03 18:18 ` Mark Skilbeck
2012-06-03 19:02   ` Andrew Michael Levin
2012-06-03 19:08     ` Drew Adams
2012-06-04  5:57     ` Bob Proulx
2012-06-04 13:55   ` suvayu ali
2012-06-04 14:56     ` Alp Aker
2012-06-04 15:28       ` suvayu ali
2012-06-04  6:30 ` Jai Dayal
2012-06-04 13:51   ` suvayu ali
2012-06-04 16:07     ` Jai Dayal
2012-06-04 16:15       ` suvayu ali
2012-06-04 16:24       ` Drew Adams
2003-01-16 17:24 andrew.maguire
2003-01-07  4:33 Matthew Low
2003-01-07  8:10 ` Benjamin Lewis
2003-01-07 20:17   ` Tuomo Takkula
2003-01-07 20:43     ` Benjamin Lewis
2003-01-13  8:44       ` Lee Sau Dan
2003-01-07 22:27   ` Bruce Korb
2003-01-09  2:45   ` Matthew Low
2003-01-09  5:18     ` Benjamin Lewis
     [not found]   ` <mailman.42.1041986128.21513.help-gnu-emacs@gnu.org>
2003-01-08 12:12     ` Reiner Steib
2003-01-13  8:44     ` Lee Sau Dan
2003-01-14 18:27       ` Kevin Rodgers
2003-01-20  7:50         ` Lee Sau Dan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86bquiv50y.fsf@gothmog.pc \
    --to=keramida@ceid.upatras.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.