From: "Stuart D. Herring" <herring@lanl.gov>
Cc: Herbert Euler <herberteuler@hotmail.com>, emacs-devel@gnu.org
Subject: Re: On definition of `kbd'
Date: Wed, 11 Oct 2006 07:24:33 -0700 (PDT) [thread overview]
Message-ID: <39807.128.165.123.18.1160576673.squirrel@webmail.lanl.gov> (raw)
In-Reply-To: <85u02brtkw.fsf@lola.goethe.zz>
>> 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.
To elaborate on David's response: if you really want to get a key sequence
representation of a dynamic string, just use the `read-kbd-macro' function
that the `kbd' macro calls. `kbd' is for when you just want to do
something simple and direct (read: hardcoded) in Lisp: (kbd "C-x C-c").
The result is human-readable but during byte-compilation actually becomes
"^X^C" (two characters), so there's no performance penalty.
Hope this helps,
Davis
--
This product is sold by volume, not by mass. If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.
prev parent reply other threads:[~2006-10-11 14:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-11 11:09 On definition of `kbd' Herbert Euler
2006-10-11 11:16 ` David Kastrup
2006-10-11 13:55 ` Herbert Euler
2006-10-11 14:03 ` David Kastrup
2006-10-11 14:24 ` Stuart D. Herring [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=39807.128.165.123.18.1160576673.squirrel@webmail.lanl.gov \
--to=herring@lanl.gov \
--cc=emacs-devel@gnu.org \
--cc=herberteuler@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.