[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: keyboard macro question
From: |
Tassilo Horn |
Subject: |
Re: keyboard macro question |
Date: |
Fri, 02 Oct 2009 22:15:26 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Harry Putnam <reader@newsguy.com> writes:
Hi Harry,
> To reproduce:
> Create macro of:
> C-u 1 C-x r n a
> C-x r i a
> C-x r + a
The first part (setting register a to 1) must not be part of the macro,
but must be done beforehand. Else, each time the macro executes,
register a will be set to 1, then you insert the 1, and then you
increment it to 2.
So here's how to do it:
C-u 1 C-x r n a ;; Set register a to 1
F3 ;; Start definition of a macro
C-x r i a ;; insert value of register a
C-x r + a ;; Increment register a
F4 ;; End macro definition
Then any additional F4 will insert 2, 3, 4, 5, 6, ...
Bye,
Tassilo
- keyboard macro question, Benjamin, 2009/10/02
- Re: keyboard macro question, Joost Kremers, 2009/10/02
- Re: keyboard macro question, David Kastrup, 2009/10/02
- Re: keyboard macro question, Colin S. Miller, 2009/10/02
- Re: keyboard macro question, Eric, 2009/10/02
- Re: keyboard macro question, Xah Lee, 2009/10/04