From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: Re: About `catch' and `throw' Date: Sat, 5 Jan 2013 00:57:12 +0000 (UTC) Organization: Public Access Networks Corp. Message-ID: References: <20121221200001.891d30e881f25580089bbc5b@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1357347622 24791 80.91.229.3 (5 Jan 2013 01:00:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Jan 2013 01:00:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 05 02:00:39 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TrI7j-0000LQ-S6 for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Jan 2013 02:00:31 +0100 Original-Received: from localhost ([::1]:58336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TrI7R-000500-DU for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Jan 2013 20:00:13 -0500 Original-Path: usenet.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: panix1.panix.com Original-X-Trace: reader1.panix.com 1357347432 16738 166.84.1.1 (5 Jan 2013 00:57:12 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Sat, 5 Jan 2013 00:57:12 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Original-Xref: usenet.stanford.edu gnu.emacs.help:196154 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88459 Archived-At: In article , Pascal J. Bourguignon wrote: >... >The point is that catch/throw is a dynamic mechanism, not a lexical one. >So it is bad to say "outside", since this has a spacial conotation. > >throw can be used WHEN catch is executing, or WHEN it is not. > >If you call (throw 'something result) WHEN there's a (catch 'something …) >executing, then the control will pass from the throw expression to the >catch expression, and the catch expression will return the result >passed to throw. > >It's only a question of time, of WHEN catch is being evaluated and WHEN >throw is evaluated. > Would you then say that when throw is triggered, it starts looking up the stack (to older items) for a (matching?) catch, then collapses the part of the stack it came from (where the throw was) up to that point, fixes things up, and continues within the catch? And if there is no catch, then it does . > > > ...., but the current implementation >(even in emacs-24) is full of bugs. In your opinion, is this going to get fixed anytime soon? Or has it been there for decades, and probably will remain for decades to come? Thanks, David