From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: arithemtic in buffers Date: Thu, 10 Aug 2006 08:03:51 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155222332 1119 80.91.229.2 (10 Aug 2006 15:05:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Aug 2006 15:05:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 10 17:05:29 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GBC5F-0007hf-Kv for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Aug 2006 17:04:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBC5E-0006Oi-AE for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Aug 2006 11:04:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GBC50-0006Lx-HK for help-gnu-emacs@gnu.org; Thu, 10 Aug 2006 11:04:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GBC4w-0006I5-6W for help-gnu-emacs@gnu.org; Thu, 10 Aug 2006 11:04:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBC4v-0006Hj-Tl for help-gnu-emacs@gnu.org; Thu, 10 Aug 2006 11:04:09 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1GBC9q-0003Wp-Gq for help-gnu-emacs@gnu.org; Thu, 10 Aug 2006 11:09:15 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k7AF3vRm009370; Thu, 10 Aug 2006 10:03:57 -0500 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmgw2.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k7AF3uxw008763; Thu, 10 Aug 2006 09:03:56 -0600 Original-To: "Birju Prajapati" , X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:36588 Archived-At: I need to increase the value of the last digit on each line by one. Is there an automagic way to do this via emacs? Do I use regular expressions, M-x calculator, both, or something else to do it? Any help would be much appreciated http://www.emacswiki.org/cgi-bin/wiki/ReplaceCount http://www.emacswiki.org/cgi-bin/wiki/IncrementNumber http://www.emacswiki.org/cgi-bin/wiki/NumbersInRegisters http://www.emacswiki.org/cgi-bin/wiki/EmacsKeyboardMacroCounter http://www.emacswiki.org/cgi-bin/wiki/KeyboardMacrosTricks How did I find those pages? Searched for "increment". HTH