From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Making while interruptable Date: Tue, 7 Jul 2009 01:02:51 +0200 Message-ID: References: <87skh9sa9u.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246921396 30015 80.91.229.12 (6 Jul 2009 23:03:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jul 2009 23:03:16 +0000 (UTC) Cc: Emacs-Devel devel To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 07 01:03:08 2009 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 1MNxDH-0002v6-HW for ged-emacs-devel@m.gmane.org; Tue, 07 Jul 2009 01:03:07 +0200 Original-Received: from localhost ([127.0.0.1]:40219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNxDH-0002Nb-02 for ged-emacs-devel@m.gmane.org; Mon, 06 Jul 2009 19:03:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNxDA-0002MA-6L for emacs-devel@gnu.org; Mon, 06 Jul 2009 19:03:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNxD5-0002LZ-5n for emacs-devel@gnu.org; Mon, 06 Jul 2009 19:02:59 -0400 Original-Received: from [199.232.76.173] (port=58553 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNxD5-0002LW-09 for emacs-devel@gnu.org; Mon, 06 Jul 2009 19:02:55 -0400 Original-Received: from mail-fx0-f217.google.com ([209.85.220.217]:54454) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNxD3-0005EE-JE; Mon, 06 Jul 2009 19:02:53 -0400 Original-Received: by fxm17 with SMTP id 17so4238438fxm.42 for ; Mon, 06 Jul 2009 16:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=AJ9WZxndcpoyVb2vmrbw3W+oYkh7quBSjoj+xHlPsuU=; b=uuoOYaC1Y0wv/NKu9JwK8CZIdcJrrdiW0DtHkNPtHqNmX9JRwaGEoZXstSfg598msX zcxzBpLcslmPFm7UrIUhSLImyxW+1y7t32bogFVGiWUXAFf9usV+oeNh2BsT2GvAuo2M 9fY733Fha42Il/FgcSRMn7JdMoa1GkDaDgMMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BU+W08jBlNKNS1xSQpkxsAjsuQfySeS6bnUGvhKAKajahqU6RwM7IN6pIwI1rFG2KH df9yPCtc7W7nr0iB80Rw7U+yLzU92Ca7c0rJLZKAnkKPyI9o2g5XE9pVbbiPuKstmi4G XxFw2JswXyqivHYT3IxfkI59zVLdg65HhENVc= Original-Received: by 10.239.133.65 with SMTP id 1mr402022hbu.150.1246921371730; Mon, 06 Jul 2009 16:02:51 -0700 (PDT) In-Reply-To: <87skh9sa9u.fsf@catnip.gol.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:112108 Archived-At: On Tue, Jul 7, 2009 at 12:43 AM, Miles Bader wrote: > Lennart Borgman 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. =C2=A0It _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. =C2=A0With blood. =C2=A0[Eli Shin, on "The Passion= of the Christ"] >