From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: condition-case Date: Fri, 10 Dec 2010 16:43:46 -0500 Organization: A noiseless patient Spider Message-ID: References: <33e7a222-992c-4fc2-bbd2-d987a0d4d9b1@j32g2000prh.googlegroups.com> <877hfxokvh.fsf@lola.goethe.zz> <4d4ecf83-ffd8-43d9-8c27-4123856273e9@21g2000prv.googlegroups.com> <0b6e72ef-a605-4ac1-bc71-f3e180f162fb@j18g2000prn.googlegroups.com> <87r5e3zxyw.fsf@kuiper.lan.informatimago.com> <878w06lqcf.fsf@lifelogs.com> <8762vaodaw.fsf@kuiper.lan.informatimago.com> <8762v6ho6q.fsf@lifelogs.com> <87hbepd50p.fsf@lifelogs.com> <87pqtc9sd5.fsf@lifelogs.com> <877hfh4gl5.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292020841 8386 80.91.229.12 (10 Dec 2010 22:40:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 22:40:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 23:40:37 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PRBdk-0003jn-Lh for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 23:40:36 +0100 Original-Received: from localhost ([127.0.0.1]:43136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRBdj-0006kV-TU for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 17:40:35 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Injection-Info: mx01.eternal-september.org; posting-host="5ESV0E4sfgtqyPsXa8d/qg"; logging-data="13193"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18l4qTps/SO8I46J3/WW+Nq" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:DBSA9Ld3oAK6mho9zyWoPZqOoWo= sha1:Tnskn+3DtR/TEBvCxKSCmAJz4ww= Original-Xref: usenet.stanford.edu gnu.emacs.help:183155 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77412 Archived-At: PJB> There's no condition-bind to wrap over. PJB> I'm not sure it would be possible to implement handler-bind without PJB> patching the virtual machine. > Stefan, WDYT? Is `condition-bind' possible in today's GNU Emacs? I > mean does the VM have any constraints that would block it? There used to be some allowance made in the C code for such a feature, but since it was never used it bit-rotted and has "recently" been more actively removed. So adding a condition-bind or something like that would require a fair bit of work, I think. There is still some support for part of it since errors can jump into the debugger, but currently the debugger cannot return to the source of the error, it can only jump back up the stack like condition-case does. Stefan