From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Subject: Re: Is `kbd' idempotent?
Date: Tue, 01 Dec 2015 19:32:15 +0100 [thread overview]
Message-ID: <87io4inhow.fsf@web.de> (raw)
In-Reply-To: n3ker9$lpo$1@ger.gmane.org
Random832 <random832@fastmail.com> writes:
> What about calling kbd only if the 'read' result is a string? That way
> if they really want to pass a self-made string, they can do e.g.
> (identity "foo"), whereas "foo" alone will be treated as (kbd "foo")
I want to avoid to introduce such a complexity for that little gain.
From what I heard, I think it's cleaner to let the user type the `kbd'
call if he prefers the `kbd' format.
> I do wonder what the use case is, though, that benefits from allowing
> the entry of an arbitrary lisp expression instead of just directly
> passing the user input to kbd without even a read/eval stage. Are there
> key sequences that can't be represented in kbd format that the user will
> want to enter as vector literals?
The input can be inserted via copy and paste or another method different
from typing literally. Also the binding of a variable or the result
of something like (my-private-version-of-kbd KEYS ...) should be
supported.
Thanks,
Michael.
next prev parent reply other threads:[~2015-12-01 18:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-30 15:26 Is `kbd' idempotent? Michael Heerdegen
2015-11-30 15:39 ` David Kastrup
2015-11-30 16:01 ` Michael Heerdegen
2015-11-30 16:24 ` Random832
2015-12-01 14:25 ` Michael Heerdegen
2015-12-01 15:37 ` Random832
2015-12-01 18:32 ` Michael Heerdegen [this message]
2015-12-02 18:33 ` Michael Heerdegen
2015-11-30 16:24 ` Andreas Schwab
2015-11-30 16:30 ` Random832
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=87io4inhow.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=emacs-devel@gnu.org \
/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.