[Top][All Lists]

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

Re: On definition of `kbd'

From: David Kastrup
Subject: Re: On definition of `kbd'
Date: Wed, 11 Oct 2006 13:16:15 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Herbert Euler" <address@hidden> 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

reply via email to

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