From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; read-char unexpectedly halts execution of script Date: Mon, 06 Oct 2008 15:08:44 -0400 Message-ID: <87hc7pr16r.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223320057 11413 80.91.229.12 (6 Oct 2008 19:07:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2008 19:07:37 +0000 (UTC) Cc: 1082@emacsbugs.donarmstrong.com To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 06 21:08:29 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KmvRU-0006wL-2w for ged-emacs-devel@m.gmane.org; Mon, 06 Oct 2008 21:08:28 +0200 Original-Received: from localhost ([127.0.0.1]:57463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmvQQ-0006eB-Ft for ged-emacs-devel@m.gmane.org; Mon, 06 Oct 2008 15:07:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmvQL-0006di-O8 for emacs-devel@gnu.org; Mon, 06 Oct 2008 15:07:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmvQJ-0006dK-AI for emacs-devel@gnu.org; Mon, 06 Oct 2008 15:07:17 -0400 Original-Received: from [199.232.76.173] (port=43281 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmvQJ-0006dF-6z for emacs-devel@gnu.org; Mon, 06 Oct 2008 15:07:15 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:47790) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KmvQI-00058y-GQ for emacs-devel@gnu.org; Mon, 06 Oct 2008 15:07:14 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 6E50957E0B6; Mon, 6 Oct 2008 15:08:44 -0400 (EDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104384 Archived-At: > Let filter.el consist of 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))) > (message "char: %s" char))) > > Where "/usr/bin/bc" is the GNU arbitrary precision calculator. Now: > > mt-computer:~ mt$ emacs --script filter.el > starting > mt-computer:~ mt$ > > I expect non-termination in this case, as in eval-buffer on filter.el. This broke when SYNC_INPUT became the default; it works when Emacs is recompiled without SYNC_INPUT, like Emacs 22. I don't know what the specific cause of failure is, however. Maybe the SYNC_INPUT code should only be active when Emacs is run interactively. Thoughts?