emacs-devel
[Top][All Lists]
Advanced

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

Convert keyboard macros to Lisp (was: how-many/count-matches for non-int


From: Juri Linkov
Subject: Convert keyboard macros to Lisp (was: how-many/count-matches for non-interactive use)
Date: Fri, 22 Oct 2004 15:54:51 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Richard Stallman <address@hidden> writes:
> The discussion seems to have wandered into a tangent about
> how to best convert keyboard macros to Lisp.

I tend to avoid using keyboard macros as much as possible because when
requirements for a macro are changed beyond the macro capabilities all
user's efforts on defining a macro are wasted and Lisp code needs to be
written from scratch.

Bob already mentioned an old command that would convert a keyboard
macro to an Emacs Lisp program.  I am not aware of such a command,
but I think it would be useful.  It also might serve as a quick start
for writing Lisp code: to generate most of Lisp function calls after
typing corresponding keys and add complex Lisp constructs manually later.

I imagine that such command can't convert a keyboard macro to Lisp code
statically since a keyboard macro may switch buffers where keys have
different bindings.  It should perform conversion either during macro
definition or execution.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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