From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Francis Moreau" Newsgroups: gmane.emacs.help Subject: How to automatically increment an index array Date: Thu, 26 Jun 2008 09:45:06 +0200 Message-ID: <38b2ab8a0806260045o100d1237iff3c6289775e5131@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1214468365 21588 80.91.229.12 (26 Jun 2008 08:19:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Jun 2008 08:19:25 +0000 (UTC) To: gnu-emacs-help@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 26 10:20:07 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 1KBmi5-0000jk-SV for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jun 2008 10:20:06 +0200 Original-Received: from localhost ([127.0.0.1]:53687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBmhF-00020O-V4 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jun 2008 04:19:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBmgi-0001v3-N6 for help-gnu-emacs@gnu.org; Thu, 26 Jun 2008 04:18:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBmgd-0001o2-Bv for help-gnu-emacs@gnu.org; Thu, 26 Jun 2008 04:18:37 -0400 Original-Received: from [199.232.76.173] (port=55751 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBmgd-0001nf-2j for help-gnu-emacs@gnu.org; Thu, 26 Jun 2008 04:18:35 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:59025) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBmgd-00010t-6B for help-gnu-emacs@gnu.org; Thu, 26 Jun 2008 04:18:35 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:47064 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KBmAM-0001LL-9q for gnu-emacs-help@gnu.org; Thu, 26 Jun 2008 03:45:14 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KBmAQ-000522-Hq for gnu-emacs-help@gnu.org; Thu, 26 Jun 2008 03:45:21 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:8621) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KBmAP-00050x-QK for gnu-emacs-help@gnu.org; Thu, 26 Jun 2008 03:45:18 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.244]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBmAK-0006dt-P8 for gnu-emacs-help@gnu.org; Thu, 26 Jun 2008 03:45:12 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so10852273rvb.6 for ; Thu, 26 Jun 2008 00:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=omZgvPK2SelgA2DHrR0LQkeqUrdCqLWMhhlYoc+bSaU=; b=wXmuClgNmOy3/U+96VPyUsNI1k1bZ0+O8Fdm4/ZCMC2Gqty3HtyHVpL9dhAOTeoBCx G1v8+P/da/f9yfJ8pCg3wVdhYNTtOPACWviu81BjCso8aXdhgoL6DEIxPO+APcoNvXct 8pkHkKIb37aGdLhZbeEgR63Mc6g2oCK0DtyUU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=KSpxmlUQQG63566kcasySFx4q/RMlSzvKvUiMR12LvS9CzTBCKASdiQYvfob94nmCE K/YeCDtpBh+0rs2MdsB3cebAHg9hHuK1UvNAbp1WwEKUTwHCOKRdBMIVfvtb5zDgqfCU M1Jd5VU0eb2gzUVqdXpAV3JpvlRUVBSVu1yTM= Original-Received: by 10.141.136.8 with SMTP id o8mr17052498rvn.271.1214466306825; Thu, 26 Jun 2008 00:45:06 -0700 (PDT) Original-Received: by 10.140.147.1 with HTTP; Thu, 26 Jun 2008 00:45:06 -0700 (PDT) Content-Disposition: inline X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:55090 Archived-At: Hello I have this problem: in a buffer, *scratch* for example I have: [8735b450] = xxx, [0x15] = xxx, [0x16] = xxx, [0x17] = xxx, [0x18] = xxx, [0x19] = xxx, [0x1a] = xxx, [0x1b] = xxx, After running a 'magic' command I'd like to calculate the new array indexes as follow: [8735b450] = xxx, [8735b454] = xxx, [8735b458] = xxx, [8735b45c] = xxx, [8735b460] = xxx, [8735b464] = xxx, [8735b468] = xxx, [8735b46c] = xxx, ... Can anybody give me a hint ? Thanks -- Francis