GNU bug report logs - #5645
23.1.92; read-event blocks in batch mode

Previous Next

Package: emacs;

Reported by: Michael Albinus <michael.albinus <at> gmx.de>

Date: Thu, 25 Feb 2010 04:49:02 UTC

Severity: normal

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 5645 <at> debbugs.gnu.org
Subject: bug#5645: 23.1.92; read-event blocks in batch mode
Date: Fri, 26 Feb 2010 19:09:02 -0500
Michael Albinus <michael.albinus <at> gmx.de> 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.




This bug report was last modified 12 years and 311 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.