From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Rob Giardina <rgiar@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: read-char doesn't use input-decode-map
Date: Wed, 30 Dec 2009 21:51:04 -0500 [thread overview]
Message-ID: <jwv8wcjzwnt.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <loom.20091230T203058-364@post.gmane.org> (Rob Giardina's message of "Wed, 30 Dec 2009 19:56:14 +0000 (UTC)")
> Wow, read-key is pretty wild. I didn't realize you could do that
> with idle timers. Perhaps that's vanilla if you're used to
> emacs' event handling :)
It's definitely not vanilla: it took me a while to find something that
worked OK, and even the current solution is pretty hackish since it
relies on time to detect "key press boundaries", which is fundamentally
unreliable. Sadly, I think there is fundamentally no reliable way to
solve this problem, so it's probably about as good as it gets.
> This apparently means that code like I attached has no way to
> reliably translate all of a certain key into another key, at
> least for existing code that uses read-char. For example,
> y-or-n-p.
Using read-char makes it pretty much hopeless, yes.
Most uses of reac-char should be replaced by read-key instead.
Stefan
next prev parent reply other threads:[~2009-12-31 2:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-30 17:44 read-char doesn't use input-decode-map Rob Giardina
2009-12-30 18:34 ` Stefan Monnier
2009-12-30 19:56 ` Rob Giardina
2009-12-31 2:51 ` Stefan Monnier [this message]
2010-01-03 1:59 ` Lennart Borgman
2010-01-04 2:18 ` Stefan Monnier
2010-01-04 2:31 ` Lennart Borgman
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=jwv8wcjzwnt.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rgiar@yahoo.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.