From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: How to automatically increment an index array Date: Thu, 26 Jun 2008 14:51:20 +0200 Message-ID: <657EC729-1CF7-405D-AF9A-C8F9D4A372F3@Web.DE> References: <38b2ab8a0806260045o100d1237iff3c6289775e5131@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1214485577 17895 80.91.229.12 (26 Jun 2008 13:06:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Jun 2008 13:06:17 +0000 (UTC) Cc: gnu-emacs-help@gnu.org To: Francis Moreau Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 26 15:07:02 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KBrAv-0003wM-CS for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jun 2008 15:06:09 +0200 Original-Received: from localhost ([127.0.0.1]:46962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBrA5-0007a9-65 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jun 2008 09:05:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBr9i-0007V3-LR for help-gnu-emacs@gnu.org; Thu, 26 Jun 2008 09:04:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBr9f-0007Qn-Bw for help-gnu-emacs@gnu.org; Thu, 26 Jun 2008 09:04:54 -0400 Original-Received: from [199.232.76.173] (port=39431 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBr9f-0007QU-21 for help-gnu-emacs@gnu.org; Thu, 26 Jun 2008 09:04:51 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:58265) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBr9d-0008Gf-Nd for help-gnu-emacs@gnu.org; Thu, 26 Jun 2008 09:04:50 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:48004 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KBr9T-0001Gv-1z for gnu-emacs-help@gnu.org; Thu, 26 Jun 2008 09:04:39 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KBqwg-0004lO-4d for gnu-emacs-help@gnu.org; Thu, 26 Jun 2008 08:51:29 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:54887) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBqwf-0004l6-Po for gnu-emacs-help@gnu.org; Thu, 26 Jun 2008 08:51:25 -0400 Original-Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate02.web.de (Postfix) with ESMTP id 51EBBE3393A9; Thu, 26 Jun 2008 14:51:24 +0200 (CEST) Original-Received: from [195.4.205.183] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1KBqwe-0007cH-00; Thu, 26 Jun 2008 14:51:24 +0200 In-Reply-To: <38b2ab8a0806260045o100d1237iff3c6289775e5131@mail.gmail.com> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/TkeMybw7F7JHAOI6otGwfK3k8Y0Q1wgt8sNdN hH1mQVZm3bLxeV8hNHsuFZtI7hmXN9X39hn0TzbFHL9ktpSwV9 eIchQMGYhDPtXEhFuJPw== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55095 Archived-At: 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 =20 could use the comma operator with query-replace-regexp or replace-=20 regexp as in: C-M-% \([0-9]+\) RET \,(1+ \#1) RET Each set of (decimal) digits is assumed a number and is replaced by =20 number plus one. I think exactly this example is given in the Emacs =20 info node. With the comma operator you could also use calc to perform =20= real calculations on any base. -- Greetings Pete Globalisation =96 communism from above.