From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fren Zeee Newsgroups: gmane.emacs.devel Subject: Re: return Date: Fri, 3 Dec 2010 18:36:06 -0800 Message-ID: References: <201011261019.20727.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291430180 13785 80.91.229.12 (4 Dec 2010 02:36:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Dec 2010 02:36:20 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 04 03:36:16 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 1POhyx-0004qy-Pk for ged-emacs-devel@m.gmane.org; Sat, 04 Dec 2010 03:36:15 +0100 Original-Received: from localhost ([127.0.0.1]:57707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POhyx-00067i-50 for ged-emacs-devel@m.gmane.org; Fri, 03 Dec 2010 21:36:15 -0500 Original-Received: from [140.186.70.92] (port=43411 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POhyr-00066F-9T for emacs-devel@gnu.org; Fri, 03 Dec 2010 21:36:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POhyq-0002Q6-6x for emacs-devel@gnu.org; Fri, 03 Dec 2010 21:36:09 -0500 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:37487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POhyq-0002Po-3r for emacs-devel@gnu.org; Fri, 03 Dec 2010 21:36:08 -0500 Original-Received: by iwn33 with SMTP id 33so300001iwn.0 for ; Fri, 03 Dec 2010 18:36:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=cGtJAzAXeyQNs9eOKFBZB0hvgRIDcn/ncVbyvYgVBbw=; b=d1g7nAEruysvri5lmIH/ifGplwyzaJWvWU+uLdOZ6nonChlyfLZ5P1JUQVSKgphtse 4ea5qQMb5731yVPgVdz8UyYBHhL3RwvAUs4bifEQn0zWH+CBwG0VXVqCMZTrDxhDK/rq kh78xH8wXJnk9ELtd7h+aIbY6x+ZJis1M4whI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=umUqCm0waJ1ir7esqLPHCoa41Uk6+rhyzxf8DNVwnB+LDmg/zHKw+2XNv8fFNbj+Rn Idz3Igy0XLJIkJ+dZBVyUabV1/RN+XcS979khTtJGxFCzPPpGUMVkcD4QMrfrAetULz3 uxbenhGmwLEVBYaTUzWKkmnAHfzcKNfokiM+I= Original-Received: by 10.231.37.13 with SMTP id v13mr2617564ibd.163.1291430166345; Fri, 03 Dec 2010 18:36:06 -0800 (PST) Original-Received: by 10.231.35.195 with HTTP; Fri, 3 Dec 2010 18:36:06 -0800 (PST) In-Reply-To: <201011261019.20727.tassilo@member.fsf.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:133384 Archived-At: On Fri, Nov 26, 2010 at 1:19 AM, Tassilo Horn wrot= e: > 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. =A0One option you didn't list is using catch/throw: > > (defun foo (n) > =A0(catch 'val > =A0 =A0(dostuff) > =A0 =A0(when zot > =A0 =A0 =A0(throw 'val t)))) > > That's at least not something you need the cl package for. > Why not just throw the whole elisp and use CL to run emacs with lexical scoping ? What particular advantages do there accrue from the dyn scoped elisp and by incrementally making fixes to this dinosaur ? Franz Xe