# HG changeset patch # User Chong Yidong # Date 1155680882 0 # Node ID 705d28578f2d91a36618b149a85eee8012a0e555 # Parent fe2a38afd46e2a568bdc4a609c06a48da3c596e2 * commands.texi (Reading One Event): Explain idleness in `read-event'. diff -r fe2a38afd46e -r 705d28578f2d lispref/commands.texi --- a/lispref/commands.texi Tue Aug 15 19:59:08 2006 +0000 +++ b/lispref/commands.texi Tue Aug 15 22:28:02 2006 +0000 @@ -2229,6 +2229,15 @@ If @var{seconds} is @code{nil}, @code{read-event} waits as long as necessary for input to arrive. +If @var{seconds} is @code{nil}, Emacs is considered idle while waiting +for user input to arrive. Idle timers---those created with +@code{run-with-idle-timer} (@pxref{Timers})---can run during this +period. However, if @var{seconds} is non-@code{nil}, the state of +idleness remains unchanged. If Emacs is non-idle when +@code{read-event} is called, it remains non-idle throughout the +operation of @code{read-event}; if Emacs is idle (which can happen if +the call happens inside an idle timer), it remains idle. + If @code{read-event} gets an event that is defined as a help character, then in some cases @code{read-event} processes the event directly without returning. @xref{Help Functions}. Certain other events, called