[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to distinguish character from noncharacter input events?
From: |
Joakim Hove |
Subject: |
Re: How to distinguish character from noncharacter input events? |
Date: |
Wed, 11 Aug 2004 05:25:15 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) |
Joe Fineman <jcf@TheWorld.com> writes:
> 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 ...)
> (...)))
>
Assuming that by 'character input event' you mean keypresses which
just lead to immediate insertion of the corresponding character, you
might be able to make use of the function (self-insert-command N),
which is run everytime you insert characters in the buffer.
Joakim
--
Joakim Hove
hove AT ift uib no
+47 (55 5)8 27 90
http://www.ift.uib.no/~hove/