From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: Retrieving current prefix key Date: Thu, 07 May 2009 10:18:25 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1241684351 15342 80.91.229.12 (7 May 2009 08:19:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2009 08:19:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Lennart Borgman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 07 10:19:01 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M1yol-0003wZ-I9 for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2009 10:18:59 +0200 Original-Received: from localhost ([127.0.0.1]:55154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1yok-0007su-SJ for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2009 04:18:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1yoL-0007pa-Ah for help-gnu-emacs@gnu.org; Thu, 07 May 2009 04:18:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1yoI-0007m6-TP for help-gnu-emacs@gnu.org; Thu, 07 May 2009 04:18:32 -0400 Original-Received: from [199.232.76.173] (port=38712 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1yoI-0007lu-MT for help-gnu-emacs@gnu.org; Thu, 07 May 2009 04:18:30 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:56930) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1yoI-0001Gf-CO for help-gnu-emacs@gnu.org; Thu, 07 May 2009 04:18:30 -0400 Original-Received: from thursday (e176232020.adsl.alicedsl.de [85.176.232.20]) by dd18200.kasserver.com (Postfix) with ESMTP id CC40218091295; Thu, 7 May 2009 10:18:29 +0200 (CEST) In-Reply-To: (Lennart Borgman's message of "Wed, 6 May 2009 14:37:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64216 Archived-At: Lennart Borgman wrote: > I am doing something like that in mumamo.el (part of nXhtml). Look at > mumamo-unread-command-events there. Thanks. I must have been blind. What I needed was indeed just `this-command-keys. I didn't think it would be updated immediately, since the prefix keys don't trigger post-command-hooks, either. Anyway, this seems to work: ;; Check if in the middle of entering a key combination. (or (equal (this-command-keys-vector) []) (not (keymapp (key-binding (this-command-keys-vector))))) regards, Nikolaj Schumacher