GNU bug report logs - #1082
23.0.60; read-char unexpectedly halts execution of script

Previous Next

Package: emacs;

Reported by: Markus Triska <markus.triska <at> gmx.at>

Date: Sat, 4 Oct 2008 18:05:04 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 1082 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Markus Triska <markus.triska <at> gmx.at>
To: Andreas Schwab <schwab <at> suse.de>
Cc: 1082 <at> debbugs.gnu.org
Subject: Re: bug#1082: 23.0.60; read-char unexpectedly halts execution of script
Date: Tue, 07 Oct 2008 00:17:02 +0200
Andreas Schwab <schwab <at> 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.




This bug report was last modified 16 years and 294 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.