From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davis Herring Newsgroups: gmane.emacs.devel Subject: Re: non-local exits with signal and condition-case Date: Mon, 03 Jun 2013 09:54:24 -0600 Organization: XCP-1 Message-ID: <51ACBC30.70209@lanl.gov> References: <87ip1wjx9s.fsf@ferrier.me.uk> <87ehckjiyr.fsf@ferrier.me.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1370274878 16348 80.91.229.3 (3 Jun 2013 15:54:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 15:54:38 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Nic Ferrier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 03 17:54:37 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UjX5h-0000QF-CB for ged-emacs-devel@m.gmane.org; Mon, 03 Jun 2013 17:54:37 +0200 Original-Received: from localhost ([::1]:55276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjX5g-0004hp-VD for ged-emacs-devel@m.gmane.org; Mon, 03 Jun 2013 11:54:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjX5c-0004fv-Kg for emacs-devel@gnu.org; Mon, 03 Jun 2013 11:54:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjX5b-000432-Ho for emacs-devel@gnu.org; Mon, 03 Jun 2013 11:54:32 -0400 Original-Received: from proofpoint5.lanl.gov ([204.121.3.53]:51293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjX5b-00042n-9T for emacs-devel@gnu.org; Mon, 03 Jun 2013 11:54:31 -0400 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by proofpoint5.lanl.gov (8.14.4/8.14.4) with ESMTP id r53FsOMI027440; Mon, 3 Jun 2013 09:54:24 -0600 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 735AD14116CD; Mon, 3 Jun 2013 09:54:24 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Original-Received: from [128.165.123.187] (xray-r07.lanl.gov [128.165.123.187]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 6073614116C8; Mon, 3 Jun 2013 09:54:24 -0600 (MDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110717 Lanikai/3.1.11 In-Reply-To: <87ehckjiyr.fsf@ferrier.me.uk> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8626, 1.0.431, 0.0.0000 definitions=2013-06-03_04:2013-06-03, 2013-06-03, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 204.121.3.53 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160045 Archived-At: > In this example, I could be in trouble is make-page ever returns > anything. So I could throw a cons with a type indicator (say, :redirect) > and check for the type in the when. But that is a lot more work. In this case, why not just have make-page return nil if it sent the page and the redirect target otherwise? If it had some other return value that you wanted to ignore in this case, on the other hand, you can just put "nil" as an additional form in the catch. (Granted: these functions are unusual in that they are side-effect-only.) Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.