From: Joakim Hove <hove@ift.uib.no>
Subject: Re: How to distinguish character from noncharacter input events?
Date: Wed, 11 Aug 2004 05:25:15 +0200 [thread overview]
Message-ID: <bjj8ycmgxus.fsf@aquifer1.fi.uib.no> (raw)
In-Reply-To: wkllgn5bv7.fsf@TheWorld.com
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/
next prev parent reply other threads:[~2004-08-11 3:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-10 14:03 How to distinguish character from noncharacter input events? Joe Fineman
2004-08-10 15:32 ` Stefan Monnier
2004-08-11 22:09 ` Joe Fineman
2004-08-11 23:53 ` Kevin Rodgers
2004-08-12 12:05 ` Kai Grossjohann
2004-08-11 3:25 ` Joakim Hove [this message]
2004-08-11 18:24 ` Ehud Karni
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bjj8ycmgxus.fsf@aquifer1.fi.uib.no \
--to=hove@ift.uib.no \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.