help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keyboard macro question


From: David Kastrup
Subject: Re: keyboard macro question
Date: Fri, 02 Oct 2009 16:34:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Benjamin <jbenjam@gmail.com> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]