From: David Kastrup <dak@gnu.org>
To: "Herbert Euler" <herberteuler@hotmail.com>
CC: emacs-devel@gnu.org
Subject: Re: On definition of `kbd'
Date: Wed, 11 Oct 2006 13:16:15 +0200
"Herbert Euler" <herberteuler@hotmail.com> writes:
> I find definition of `kbd' is:
>
> (defmacro kbd (keys)
> "Convert KEYS to the internal Emacs key representation.
> KEYS should be a string constant in the format used for
> saving keyboard macros (see `edmacro-mode')."
> (read-kbd-macro keys))
>
> This would cause problem when evaluating
>
> (kbd (car list))
>
> where the `car' of a list is a key sequence text.
In this case, KEYS is the list `(car list)' and not a string constant.
> Is the definition correct? I think the body should be
>
> `(read-kbd-macro ,keys)
That would completely defeat the purpose of having a macro, namely
being able to do compile-time evaluation.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel