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: Sun, 28 Oct 2007 18:48:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

> I can give an example that reveals another complication of the "translate 
> using
> keymaps" approach. The following:
>
> M-x                   ;; execute-extended-command
> repla                 ;; self-insert-command * 5
> 2*TAB                 ;; lisp-indent-line
> str                   ;; self-insert-command * 3
> TAB                   ;; lisp-indent-line
> RET                   ;; newline
> is                    ;; self-insert-command * 2
> RET                   ;; newline
> IS                    ;; self-insert-command * 2
> RET                   ;; newline
>
> 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.

I agree.  It makes no sense to generate Lisp code for minibuffer
completion and other minibuffer reading functions.  What would be
useful to generate in Lisp code is the final command with its arguments:
(replace-string "is" "IS")

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




reply via email to

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