|
From: | Stefan Monnier |
Subject: | Re: How to distinguish character from noncharacter input events? |
Date: | Tue, 10 Aug 2004 15:32:05 GMT |
User-agent: | Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> Is there a function that distinguishes character from noncharacter > input events? It would be nice to be able to write > (let ((next (read-event))) > (if (char-p next) > (progn ...) > (...))) > but I can't find anything of the sort. What for? What's your definition of a "character event"? You could try (integerp event) but it will also return non-nil for M-p and C-x. So you might want to use (and (integerp event) (null (event-modifiers event)) but it all depends on what you consider to be a character event, of course. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |