[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to automatically increment an index array
From: |
Peter Dyballa |
Subject: |
Re: How to automatically increment an index array |
Date: |
Thu, 26 Jun 2008 14:51:20 +0200 |
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.