unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1082: 23.0.60; read-char unexpectedly halts execution of script
@ 2008-10-06 19:08 Chong Yidong
  0 siblings, 0 replies; 7+ messages in thread
From: Chong Yidong @ 2008-10-06 19:08 UTC (permalink / raw)
  To: emacs-devel; +Cc: 1082

> 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?






^ permalink raw reply	[flat|nested] 7+ messages in thread
* bug#1082: 23.0.60; read-char unexpectedly halts execution of script
@ 2008-10-04 17:58 Markus Triska
  0 siblings, 0 replies; 7+ messages in thread
From: Markus Triska @ 2008-10-04 17:58 UTC (permalink / raw)
  To: emacs-pretest-bug


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.

In GNU Emacs 23.0.60.1 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
 of 2008-09-24 on mt-computer.local
Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t







^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-10-07  2:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87hc7pr16r.fsf@cyd.mit.edu>
2008-10-06 19:34 ` bug#1082: 23.0.60; read-char unexpectedly halts execution of script Lennart Borgman (gmail)
2008-10-06 19:35 ` Chong Yidong
2008-10-06 21:28 ` Andreas Schwab
     [not found] ` <mailman.409.1223329803.25473.bug-gnu-emacs@gnu.org>
2008-10-06 22:17   ` Markus Triska
     [not found] ` <jewsglo1ll.fsf@sykes.suse.de>
2008-10-07  2:09   ` Stefan Monnier
2008-10-06 19:08 Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2008-10-04 17:58 Markus Triska

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).