Subject: bug#5645: 23.1.92; read-event blocks in batch mode

From: Chong Yidong <[email-masked]>
Date: Fri, 26 Feb 2010 19:09:02 -0500

Michael Albinus <[email-masked]> writes:

> Call
>
> # emacs -Q --batch --eval '(read-event nil nil 0.1)'
>
> It does not return.

This is a technical limitation of batch mode.  Input is acquired via
getchar(): see kbd_buffer_get_event in keyboard.c.  Unfortunately,
getchar() blocks until input in submitted on standard input.