From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Chong Yidong <cyd@stupidchicken.com>, 1082@emacsbugs.donarmstrong.com
Cc: emacs-devel@gnu.org
Subject: bug#1082: 23.0.60; read-char unexpectedly halts execution of script
Date: Mon, 06 Oct 2008 21:34:45 +0200 [thread overview]
Message-ID: <48EA6855.8070800__20647.1860212789$1223322689$gmane$org@gmail.com> (raw)
In-Reply-To: <87hc7pr16r.fsf@cyd.mit.edu>
Chong Yidong wrote:
>> 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?
What is the while loop supposed to do? I tested just that and I got a
bit weird results.
next parent reply other threads:[~2008-10-06 19:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87hc7pr16r.fsf@cyd.mit.edu>
2008-10-06 19:34 ` Lennart Borgman (gmail) [this message]
2008-10-06 19:35 ` bug#1082: 23.0.60; read-char unexpectedly halts execution of script 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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='48EA6855.8070800__20647.1860212789$1223322689$gmane$org@gmail.com' \
--to=lennart.borgman@gmail.com \
--cc=1082@emacsbugs.donarmstrong.com \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
/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 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).