title:Emacs lisp increment variable macro (the hard way)
See emacs_macro_examples.txt or emacs_macro_examples.html
Registers are easier to use in keyboard macros than invoking Lisp.
M-: evaluate lisp
(setq xx 0)
(insert-string xx)
(setq xx (+ 1 xx))