From: Lennart Borgman <lennart.borgman@gmail.com>
To: Miles Bader <miles@gnu.org>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Making while interruptable
Date: Tue, 7 Jul 2009 01:02:51 +0200 [thread overview]
Message-ID: <e01d8a50907061602ma2bf188td49fb2c14497f99c@mail.gmail.com> (raw)
In-Reply-To: <87skh9sa9u.fsf@catnip.gol.com>
On Tue, Jul 7, 2009 at 12:43 AM, Miles Bader<miles@gnu.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>> The idea is that the user with some let bound variable can control how
>> every call to `while' handles pending input. If pending input is
>> detected then `while' will throw to a catch symbol that is let bound
>> by the user.
>
> This is very, very, bad. It _will_ screw up lots of code in hard to
> debug and confusing ways.
Could you tell me exactly why you think so? Are you aware of that I
placed the code for interruption at the same place as QUIT is placed
in the c code. So I assumed that it was ok to jump out there, but you
seem to think differently. But why? (Don't misunderstand me. I am a
bit afraid of the same things as you, but ...)
> Using a dedicated form like `while-no-input' is proper thing to do.
In the cases I am thinking of you do not have control of this.
> -Miles
>
> --
> My spirit felt washed. With blood. [Eli Shin, on "The Passion of the Christ"]
>
next prev parent reply other threads:[~2009-07-06 23:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-06 19:40 Making while interruptable Lennart Borgman
2009-07-06 22:43 ` Miles Bader
2009-07-06 23:02 ` Lennart Borgman [this message]
2009-07-06 23:26 ` Miles Bader
2009-07-06 23:46 ` Lennart Borgman
2009-07-06 23:58 ` Miles Bader
2009-07-07 0:17 ` Lennart Borgman
2009-07-11 19:35 ` Stefan Monnier
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=e01d8a50907061602ma2bf188td49fb2c14497f99c@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=miles@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).