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

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

Re: keyboard macro question


From: Harry Putnam
Subject: Re: keyboard macro question
Date: Fri, 02 Oct 2009 13:12:29 -0500
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux)

"Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk> writes:

>
> Benjamin,
> These functions are useful for this situation
> C-u 1 C-x r n a   (number-to-register a)
> C-x r i a         (insert-register a)
> C-x r + a         (increment-register a)

I wondered if you could show an example of how this works in a
macro... when I try, it just continues to insert 1.

To reproduce:
Create macro of: 
 C-u 1 C-x r n a
 C-x r i a
 C-x r + a

then walk down this column inserting the macro

str
str
str
str

By running the macro at the end of each line, I get:

str1
str1
str1
str1






reply via email to

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