all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Francis Moreau <francis.moro@gmail.com>
Cc: gnu-emacs-help@gnu.org
Subject: Re: How to automatically increment an index array
Date: Thu, 26 Jun 2008 14:51:20 +0200	[thread overview]
Message-ID: <657EC729-1CF7-405D-AF9A-C8F9D4A372F3@Web.DE> (raw)
In-Reply-To: <38b2ab8a0806260045o100d1237iff3c6289775e5131@mail.gmail.com>


Am 26.06.2008 um 09:45 schrieb Francis Moreau:

> Can anybody give me a hint ?

With an up-to-date GNU Emacs 22.2 (or from development 23.0.x) you  
could use the comma operator with query-replace-regexp or replace- 
regexp as in:

	C-M-% \([0-9]+\) RET \,(1+ \#1) RET

Each set of (decimal) digits is assumed a number and is replaced by  
number plus one. I think exactly this example is given in the Emacs  
info node. With the comma operator you could also use calc to perform  
real calculations on any base.

--
Greetings

   Pete

Globalisation – communism from above.










  reply	other threads:[~2008-06-26 12:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-26  7:45 How to automatically increment an index array Francis Moreau
2008-06-26 12:51 ` Peter Dyballa [this message]
2008-06-27  8:47 ` David
     [not found] <mailman.13859.1214468323.18990.help-gnu-emacs@gnu.org>
2008-06-26 11:47 ` Rupert Swarbrick
2008-06-26 11:52   ` Rupert Swarbrick
2008-06-27  2:44 ` Xah
2008-06-27  6:50   ` David Kastrup
2008-06-27  7:52     ` Thien-Thi Nguyen
     [not found]     ` <mailman.13886.1214553354.18990.help-gnu-emacs@gnu.org>
2008-06-27  8:19       ` David Kastrup
2008-06-27  7:23 ` Klaus Zeitler

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=657EC729-1CF7-405D-AF9A-C8F9D4A372F3@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=francis.moro@gmail.com \
    --cc=gnu-emacs-help@gnu.org \
    /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.