all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 5645@debbugs.gnu.org
Subject: bug#5645: 23.1.92; read-event blocks in batch mode
Date: Sun, 28 Feb 2010 10:40:55 +0100	[thread overview]
Message-ID: <877hpx4s0o.fsf@gmx.de> (raw)
In-Reply-To: <87k4tzee01.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 26 Feb 2010 19:09:02 -0500")

Chong Yidong <cyd@stupidchicken.com> writes:

> Michael Albinus <michael.albinus@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.

I see. In my use case, which has caused this bug report, I am waiting
for D-Bus events. This shall be possible also in batch mode; maybe we
can fix this later.

For the time being (23.2 preparation), I'll document this limitation in
dbus.texi, and I'll avoid asynchronous calls in dbus.el, when
noninteractive is nil.

Best regards, Michael.






  reply	other threads:[~2010-02-28  9:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25  4:47 bug#5645: 23.1.92; read-event blocks in batch mode Michael Albinus
2010-02-27  0:09 ` Chong Yidong
2010-02-28  9:40   ` Michael Albinus [this message]
2012-07-17 13:16     ` Michael Albinus

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=877hpx4s0o.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=5645@debbugs.gnu.org \
    --cc=cyd@stupidchicken.com \
    /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.