From: Jay Belanger <belanger@truman.edu>
Cc: belanger@truman.edu
Subject: Reading key sequences followed by read-event.
Date: Mon, 09 May 2005 11:12:01 -0500 [thread overview]
Message-ID: <87sm0w2xbi.fsf@vh213602.truman.edu> (raw)
I would expect the following function to prompt for a key sequence,
read it, then display a message "You just pressed ..." while waiting
for another event.
That's what it does if the key sequence is one character, but if it is
more than one character, then after the key sequence (say "ab") is read,
the minibuffer appears again with the "Key sequence: a b-" prompt while
waiting for another event.
Is this expected behavior, and if so, how can I keep the echo area displayed?
(defun hmm (key)
(interactive "kKey sequence: ")
(message "You just pressed the key sequence %s" (key-description key))
(read-event))
Thanks,
Jay
next reply other threads:[~2005-05-09 16:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-09 16:12 Jay Belanger [this message]
2005-05-11 16:29 ` Reading key sequences followed by read-event Richard Stallman
2005-05-11 17:11 ` Jay Belanger
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sm0w2xbi.fsf@vh213602.truman.edu \
--to=belanger@truman.edu \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).