emacs-devel
[Top][All Lists]
Advanced

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

Re: Is there a plan to record kbd macro as elisp code?


From: Juri Linkov
Subject: Re: Is there a plan to record kbd macro as elisp code?
Date: Tue, 30 Oct 2007 16:14:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

>     is a kbd macro I recorded for M-x replace-string is -> IS. The
>     complication is with the TAB completion - it would require total
>     knowledge about TAB completion to reconstruct the command name -
>     what edit-kbd-macro doesn't do.
>
> That is a real issue, which I had not thought about before.  This is a
> case which is easier to handle if you record the actual arguments.
>
> On the other hand, just recording the actual value of the argument
> is also sometimes wrong.  Suppose you mark text in a buffer and
> copy it into the minibuffer as part of the macro.  The Lisp program
> ought to copy the text too.

Recording the actual arguments is a useful and clean solution, but
trying to emulate the logic of minibuffer processing will produce
ugly and complicated Lisp code.

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




reply via email to

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