From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.devel Subject: Reading key sequences followed by read-event. Date: Mon, 09 May 2005 11:12:01 -0500 Message-ID: <87sm0w2xbi.fsf@vh213602.truman.edu> Reply-To: belanger@truman.edu NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115659238 24043 80.91.229.2 (9 May 2005 17:20:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 May 2005 17:20:38 +0000 (UTC) Cc: belanger@truman.edu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 09 19:20:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DVB6k-000448-Qt for ged-emacs-devel@m.gmane.org; Mon, 09 May 2005 18:27:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVBD5-00036R-UU for ged-emacs-devel@m.gmane.org; Mon, 09 May 2005 12:34:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DVBCR-0002vB-Ax for emacs-devel@gnu.org; Mon, 09 May 2005 12:33:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DVBCQ-0002uR-1N for emacs-devel@gnu.org; Mon, 09 May 2005 12:33:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVBCP-0002tx-TB for emacs-devel@gnu.org; Mon, 09 May 2005 12:33:41 -0400 Original-Received: from [150.243.160.94] (helo=uranium.truman.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DVBFu-00054V-IX for emacs-devel@gnu.org; Mon, 09 May 2005 12:37:18 -0400 Original-Received: from uranium.truman.edu (uranium [127.0.0.1]) by localhost (Postfix) with SMTP id 30C9B4D42D0; Mon, 9 May 2005 11:31:07 -0500 (CDT) Original-Received: from gold.truman.edu (gold.truman.edu [150.243.160.250]) by uranium.truman.edu (Postfix) with ESMTP id 75E9C4D4322; Mon, 9 May 2005 11:12:03 -0500 (CDT) Original-Received: from vh213602.truman.edu.truman.edu (vh213602.truman.edu [150.243.160.239]) by gold.truman.edu (Postfix) with ESMTP id B8B446E4109; Mon, 9 May 2005 11:12:01 -0500 (CDT) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36910 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36910 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