From: Markus Triska <markus.triska@gmx.at>
To: Andreas Schwab <schwab@suse.de>
Cc: 1082@emacsbugs.donarmstrong.com
Subject: bug#1082: 23.0.60; read-char unexpectedly halts execution of script
Date: Tue, 07 Oct 2008 00:17:02 +0200 [thread overview]
Message-ID: <m163o5gyht.fsf@gmx.at> (raw)
In-Reply-To: <mailman.409.1223329803.25473.bug-gnu-emacs@gnu.org> (Andreas Schwab's message of "Mon, 06 Oct 2008 23:28:06 +0200")
Andreas Schwab <schwab@suse.de> writes:
> In non-interactive mode we always want restartable syscalls, since
> keyboard input goes through stdio (SYNC_INPUT makes no difference here).
> I've checked in a fix.
Thank you, it fixes this problem for me. Could process output also be
handled, as in interactive use? E.g., M-x eval-region on the forms:
(defun bc-filter (proc string)
(message "%s" string))
(message "starting")
(setq bc (start-process "bc" nil "/usr/bin/bc"))
(set-process-filter bc 'bc-filter)
(while t
(let ((char (read-char nil nil 0.1)))
(when char
(message "char: %s" char))))
processes the output of bc, and shows:
starting
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
Whereas in "emacs --script" mode, this output is not shown.
next prev parent reply other threads:[~2008-10-06 22:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-06 19:08 23.0.60; read-char unexpectedly halts execution of script Chong Yidong
2008-10-06 19:34 ` bug#1082: " Lennart Borgman (gmail)
2008-10-06 19:34 ` Lennart Borgman (gmail)
2008-10-06 19:35 ` Chong Yidong
2008-10-06 19:35 ` Chong Yidong
2008-10-06 21:28 ` bug#1082: " Andreas Schwab
2008-10-06 21:28 ` Andreas Schwab
2008-10-07 2:09 ` bug#1082: " Stefan Monnier
2008-10-07 2:09 ` Stefan Monnier
[not found] ` <mailman.409.1223329803.25473.bug-gnu-emacs@gnu.org>
2008-10-06 22:17 ` Markus Triska [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-10-06 19:08 bug#1082: " Chong Yidong
2008-10-04 17:58 Markus Triska
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=m163o5gyht.fsf@gmx.at \
--to=markus.triska@gmx.at \
--cc=1082@emacsbugs.donarmstrong.com \
--cc=schwab@suse.de \
/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.