Subject: bug#9903: closed (Re: bug#9903: 24.0.90; Empty input string signals error in batch mode.)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 29 Oct 2011 08:59:02 +0000

Your bug report

#9903: 24.0.90; Empty input string signals error in batch mode.

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
9903: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9903
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#9903: 24.0.90; Empty input string signals error in batch mode.
From: Andreas Schwab <[email-masked]>
To: Chong Yidong <[email-masked]>
Cc: [email-masked]
Date: Sat, 29 Oct 2011 10:56:34 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Fixed.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Subject: 24.0.90; Empty input string signals error in batch mode.
From: Chong Yidong <[email-masked]>
To: [email-masked]
Date: Sat, 29 Oct 2011 16:32:25 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

1. emacs -Q -batch --eval '(message "%s" (read-string "ASDF: "))'
2. Type RET at the prompt, without entering any text.

Emacs signals an error:

Error reading from stdin

This problem was introduced by:

  revno: 105287
  committer: Paul Eggert <[email-masked]>
  branch nick: trunk
  timestamp: Tue 2011-07-19 10:33:06 -0700
  message:
    Port to OpenBSD.

    See http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg00688.html
    and the surrounding thread.
    * minibuf.c (read_minibuf_noninteractive): Rewrite to use getchar
    rather than fgets, and retry after EINTR.  Otherwise, 'emacs
    --batch -f byte-compile-file' fails on OpenBSD if an inactivity
    timer goes off.