From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: keyboard macro question Date: Fri, 02 Oct 2009 16:34:28 +0200 Organization: Organization?!? Message-ID: <877hvduaob.fsf@lola.goethe.zz> References: <578073a3-391f-481d-9d05-303bfef8e01c@x37g2000yqj.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254494569 8598 80.91.229.12 (2 Oct 2009 14:42:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Oct 2009 14:42:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 02 16:42:41 2009 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 1MtjLF-0007h7-81 for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Oct 2009 16:42:41 +0200 Original-Received: from localhost ([127.0.0.1]:41280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtjLE-0001zh-9x for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Oct 2009 10:42:40 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!syros.belnet.be!news.belnet.be!news2.euro.net!xlned.com!feeder1.xlned.com!newsfeed-fusi2.netcologne.de!news.netcologne.de!newsfeed-hp2.netcologne.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:S+AZ9FycVG7Pt5/vA6eiUTs6qHI= Original-Lines: 22 Original-NNTP-Posting-Date: 02 Oct 2009 16:34:29 CEST Original-NNTP-Posting-Host: fab35203.newsspool3.arcor-online.net Original-X-Trace: DXC=U7HNPLYY]@CA@P]\DMcF=Q^Z^V3H4Fo<]lROoRA^YC2XCjHcbIS6g?nSLimRJCV`H8_`hhQD^9QSCVg3dOFgcO2@_RHd:DTD?nFA]TdIN1A@MRB`1N`N Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: news.stanford.edu gnu.emacs.help:173510 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:68623 Archived-At: Benjamin writes: > I use keyboard macros fairly frequently, but I often run into a > situation where I would like to increment a number in the macro, e.g., > if I start with: > > tmp tmp tmp tmp > > and I want to end with: > tmp1 > tmp2 > tmp3 > tmp4 > > I don't mind doing something other than macros, or even external > commands (perl/sed/awk, etc.) > to assist with this. C-M-% tmp SPC RET tmp\,(1+ \#) C-q C-j RET -- David Kastrup