Go to the first, previous, next, last section, table of contents.


Reading Events

Most of the time it is unnecessary to read events manually; usually a special-purpose keymap will be sufficient. However it is possible to read single events from a Lisp program.

Function: read-event &optional prompt-string
Read the next input event from the current window and return it. If the optional string prompt-string is defined it is a one-line message to display while waiting for the event.

Note that this function isn't very efficient when used heavily; it uses a recursive edit and the unbound-key-hook to read the event. If possible use a keymap instead.


Go to the first, previous, next, last section, table of contents.