From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: return Date: Fri, 26 Nov 2010 10:19:20 +0100 Message-ID: <201011261019.20727.tassilo@member.fsf.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1290763212 1659 80.91.229.12 (26 Nov 2010 09:20:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Nov 2010 09:20:12 +0000 (UTC) Cc: Lars Magne Ingebrigtsen To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 26 10:20:07 2010 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.69) (envelope-from ) id 1PLuTO-0005O0-JZ for ged-emacs-devel@m.gmane.org; Fri, 26 Nov 2010 10:20:06 +0100 Original-Received: from localhost ([127.0.0.1]:58164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLuTN-0002IS-OG for ged-emacs-devel@m.gmane.org; Fri, 26 Nov 2010 04:20:05 -0500 Original-Received: from [140.186.70.92] (port=47337 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLuSx-0002Hi-9Z for emacs-devel@gnu.org; Fri, 26 Nov 2010 04:19:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLuSg-0003GU-PK for emacs-devel@gnu.org; Fri, 26 Nov 2010 04:19:39 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:21438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLuSg-0003GG-Jd for emacs-devel@gnu.org; Fri, 26 Nov 2010 04:19:22 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 88F6B7801531; Fri, 26 Nov 2010 10:19:21 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02510-06; Fri, 26 Nov 2010 10:19:21 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.localnet (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id 2316B7801527; Fri, 26 Nov 2010 10:19:21 +0100 (CET) User-Agent: KMail/1.13.5 (Linux/2.6.36; KDE/4.5.3; x86_64; ; ) In-Reply-To: X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:133150 Archived-At: On Friday 26 November 2010 09:57:21 Lars Magne Ingebrigtsen wrote: > Wouldn't it be nice if Emacs Lisp had a workable early-return > mechanism? I guess so. One option you didn't list is using catch/throw: (defun foo (n) (catch 'val (dostuff) (when zot (throw 'val t)))) That's at least not something you need the cl package for. Bye, Tassilo