[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[NTEmacs] accept-process-output does not return in batch mode
From: |
Tetsuo Tsukamoto |
Subject: |
[NTEmacs] accept-process-output does not return in batch mode |
Date: |
Sat, 19 Nov 2005 02:03:25 +0900 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Hi,
I usually use Emacs under GNU/Linux. Since someone had told me
that NTEmacs may hang when called noninteractively, I tried to
reproduce the problem under Windows XP/2000. Reproduced with both
NTEmacs 21.3 (binary got from ftp.gnu.org) and 22.0.50
(i386-mingw-nt5.x.xxxx) of 2005-11-18 which I built with gcc from
cygwin.
I did the following:
1. Invoke a local pop3 server.
% /usr/local/sbin/popper
(*) Any service may be OK. I used it since pop3 command is
simple. Besides, service does not need to be local.
2. Prepare an emacs lisp file.
% cat foo.el
(setq process (open-network-stream "foo" " *foo*" "localhost" 110))
(process-send-string process "QUIT\r\n")
(accept-process-output process)
3. Call Emacs as the following.
% emacs -batch -q -no-site-file -l foo.el
The prompt never returns until C-c. If the 3rd line of foo.el is
commented out, the prompt returns immediately.
I have no idea what is wrong, but Meadow 2.10, yet another version
of Emacs under Windows, never causes the problem. It returns
immediately just like Emacs 22.0.50 under GNU/Linux does.
I'm not even sure NTEmacs does something wrong there, but no doubt
it behaves differently.
--
Tetsuo Tsukamoto
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [NTEmacs] accept-process-output does not return in batch mode,
Tetsuo Tsukamoto <=