From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#1082: 23.0.60; read-char unexpectedly halts execution of script Date: Tue, 07 Oct 2008 00:17:02 +0200 Message-ID: References: <87hc7pr16r.fsf@cyd.mit.edu> Reply-To: Markus Triska , 1082@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223332223 22154 80.91.229.12 (6 Oct 2008 22:30:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2008 22:30:23 +0000 (UTC) Cc: 1082@emacsbugs.donarmstrong.com To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 07 00:31:21 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kmybn-0006KS-Te for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Oct 2008 00:31:20 +0200 Original-Received: from localhost ([127.0.0.1]:38766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kmyak-0007NH-8X for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Oct 2008 18:30:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmyaY-0007Hb-I4 for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2008 18:30:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmyaW-0007GX-7p for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2008 18:30:01 -0400 Original-Received: from [199.232.76.173] (port=56687 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmyaW-0007GR-3S for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2008 18:30:00 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48915) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KmyaV-0004Bd-F1 for bug-gnu-emacs@gnu.org; Mon, 06 Oct 2008 18:29:59 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m96MTvUx004500; Mon, 6 Oct 2008 15:29:57 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m96MP4hi003436; Mon, 6 Oct 2008 15:25:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Markus Triska Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 06 Oct 2008 22:25:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1082 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1082-submit@emacsbugs.donarmstrong.com id=B1082.12233314542066 (code B ref 1082); Mon, 06 Oct 2008 22:25:03 +0000 Original-Received: (at 1082) by emacsbugs.donarmstrong.com; 6 Oct 2008 22:17:34 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m96MHUpc002060 for <1082@emacsbugs.donarmstrong.com>; Mon, 6 Oct 2008 15:17:32 -0700 Original-Received: (qmail invoked by alias); 06 Oct 2008 22:17:24 -0000 Original-Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212] by mail.gmx.net (mp024) with SMTP; 07 Oct 2008 00:17:24 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX18cqOxP4w8cBDNFqpi14FQQC0jf4n9OfCdE0kWLl3 G+jYZz+264owAG Original-Received: by mt-computer.local (Postfix, from userid 502) id 8CA94B1B684; Tue, 7 Oct 2008 00:17:02 +0200 (CEST) In-Reply-To: (Andreas Schwab's message of "Mon, 06 Oct 2008 23:28:06 +0200") X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5600000000000001 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 06 Oct 2008 18:30:01 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21193 Archived-At: Andreas Schwab 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.