From: Jim Ottaway <j.ottaway@lse.ac.uk>
Subject: Re: emacs insert icrement numbers
Date: Thu, 17 Aug 2006 22:58:50 +0100 [thread overview]
Message-ID: <873bbvyqg5.fsf@lse.ac.uk> (raw)
In-Reply-To: 8764grmpkt.fsf@thalassa.informatimago.com
Regards,
Pascal Bourguignon <pjb@informatimago.com> writes:
> With latest versions (>=22), you can use \,form in the the substitutions.
>
> For example, select a region and:
>
> M-x replace-regexp RET \(.*\) RET
> \,(progn(defvar n 0)(format "%3d " (incf n)))\1 RET
>
Or
M-x replace-regexp RET ^ RET \,\#
[there are two spaces after the '\#'. I don't know why it needs 2 rather
than one, though]
--
Jim Ottaway
next prev parent reply other threads:[~2006-08-17 21:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.5271.1155819472.9609.help-gnu-emacs@gnu.org>
2006-08-17 13:23 ` emacs insert icrement numbers wenbinye
2006-08-17 13:31 ` Chris McMahan
2006-08-17 13:53 ` wenbinye
2006-08-17 19:31 ` Chris McMahan
2006-08-17 13:58 ` Pascal Bourguignon
2006-08-17 19:34 ` Chris McMahan
2006-08-17 21:58 ` Jim Ottaway [this message]
[not found] ` <mailman.5302.1155852315.9609.help-gnu-emacs@gnu.org>
2006-08-18 6:38 ` David Kastrup
2006-08-17 10:41 Step0ut
2006-08-23 0:37 ` Bill Wohler
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=873bbvyqg5.fsf@lse.ac.uk \
--to=j.ottaway@lse.ac.uk \
/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.