From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 07 21:48:07 2010 Received: (at submit) by debbugs.gnu.org; 8 Jun 2010 01:48:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLnvD-0007RB-8D for submit@debbugs.gnu.org; Mon, 07 Jun 2010 21:48:07 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLnvB-0007Qp-1S for submit@debbugs.gnu.org; Mon, 07 Jun 2010 21:48:06 -0400 Received: from lists.gnu.org ([199.232.76.165]:39667) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OLnv7-00033b-8n for submit@debbugs.gnu.org; Mon, 07 Jun 2010 21:48:01 -0400 Received: from [140.186.70.92] (port=42717 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLnv5-0006hA-Ma for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2010 21:48:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, T_TVD_MIME_NO_HEADERS autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLnv3-0007b9-Bp for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2010 21:47:59 -0400 Received: from mailout1-3.pacific.net.au ([61.8.2.210]:42014 helo=mailout1.pacific.net.au) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLnv2-0007am-NQ for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2010 21:47:57 -0400 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id D1FE358A296 for ; Tue, 8 Jun 2010 11:47:52 +1000 (EST) Received: from blah.blah (ppp287C.dyn.pacific.net.au [61.8.40.124]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id 13EF527408 for ; Tue, 8 Jun 2010 11:47:46 +1000 (EST) Received: from gg by blah.blah with local (Exim 4.71) (envelope-from ) id 1OLnuB-0002vG-Tg for bug-gnu-emacs@gnu.org; Tue, 08 Jun 2010 11:47:03 +1000 From: Kevin Ryde To: bug-gnu-emacs@gnu.org Subject: 23.1; elisp manual example condition-case re-signal of error Date: Tue, 08 Jun 2010 11:47:03 +1000 Message-ID: <87r5kii9d4.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.6 (-----) --=-=-= I had to scratch my head a bit a while ago to find out how a condition-case handler should re-signal an error. It'd be good if the elisp manual had an example of that. Just one line, as that section is a bit wordy already. There were two spots in emacs itself wrongly doing an apply instead of a call for such a re-signal, so I suppose I'm not the only one to be confused. (The one in cedet/semantic/wisent.el might still be there.) 2010-06-08 Kevin Ryde * control.texi (Handling Errors): Show example of condition-case handler re-signalling an error. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=control.texi.re-signal-error.diff --- control.texi.~1.7.~ 2009-02-24 08:41:24.000000000 +1100 +++ control.texi 2009-11-02 15:26:38.000000000 +1100 @@ -1019,7 +1019,11 @@ . @var{data})}. The handler can refer to this list to decide what to do. For example, if the error is for failure opening a file, the file name is the second element of @var{data}---the third element of the -error description. +error description. The handler can re-signal the error with + +@example +(signal (car var) (cdr var)) ;; re-signal +@end example If @var{var} is @code{nil}, that means no variable is bound. Then the error symbol and associated data are not available to the handler. --=-=-= In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-09-14 on raven, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 08 04:28:50 2010 Received: (at 6375) by debbugs.gnu.org; 8 Jun 2010 08:28:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLuB0-0001bG-Lh for submit@debbugs.gnu.org; Tue, 08 Jun 2010 04:28:50 -0400 Received: from smtp-out2.starman.ee ([85.253.0.4] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLuAx-0001bB-P4 for 6375@debbugs.gnu.org; Tue, 08 Jun 2010 04:28:48 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.55.231.cable.starman.ee [82.131.55.231]) by mx2.starman.ee (Postfix) with ESMTP id C08363F4078; Tue, 8 Jun 2010 11:28:41 +0300 (EEST) From: Juri Linkov To: Kevin Ryde Subject: Re: bug#6375: 23.1; elisp manual example condition-case re-signal of error Organization: JURTA References: <87r5kii9d4.fsf@blah.blah> Date: Tue, 08 Jun 2010 11:10:02 +0300 In-Reply-To: <87r5kii9d4.fsf@blah.blah> (Kevin Ryde's message of "Tue, 08 Jun 2010 11:47:03 +1000") Message-ID: <871vciue1r.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 6375 Cc: 6375@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) > I had to scratch my head a bit a while ago to find out how a > condition-case handler should re-signal an error. It'd be good if the > elisp manual had an example of that. Just one line, as that section is > a bit wordy already. Two months ago we already added exactly the same example in `Handling Errors'. Please see in the development sources, not in the 23.1 release. -- Juri Linkov http://www.jurta.org/emacs/ From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 21:32:26 2010 Received: (at control) by debbugs.gnu.org; 11 Jun 2010 01:32:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMt6g-0000QN-92 for submit@debbugs.gnu.org; Thu, 10 Jun 2010 21:32:26 -0400 Received: from pantheon-po14.its.yale.edu ([130.132.50.23]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMt6e-0000QI-Pf for control@debbugs.gnu.org; Thu, 10 Jun 2010 21:32:25 -0400 Received: from furry (adsl-99-58-202-102.dsl.wlfrct.sbcglobal.net [99.58.202.102]) (authenticated bits=0) by pantheon-po14.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o5B1WKSe023943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 10 Jun 2010 21:32:21 -0400 Received: by furry (Postfix, from userid 1000) id EB78F16D427; Fri, 11 Jun 2010 03:32:19 +0200 (CEST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 6375 Date: Thu, 10 Jun 2010 21:32:19 -0400 Message-ID: <87631qs6ak.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) close 6375 thanks From unknown Sat Aug 16 14:26:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 09 Jul 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator