From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Tangling is broken in git master Date: Mon, 13 Aug 2012 17:25:22 +0200 Message-ID: <87pq6uq0f1.fsf@gmail.com> References: <87628oncqa.fsf@norang.ca> <871ujc33gd.fsf@gnu.org> <87lihj7dyw.fsf@norang.ca> <87sjbrs5wh.fsf@gnu.org> <877gt2sy83.fsf@gmx.com> <87r4rayjxu.fsf@gnu.org> <87obmeg9il.fsf@gmx.com> <87393qyhst.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0wZr-00011d-NU for emacs-orgmode@gnu.org; Mon, 13 Aug 2012 11:29:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0wZn-0006lm-VL for emacs-orgmode@gnu.org; Mon, 13 Aug 2012 11:29:11 -0400 In-Reply-To: <87393qyhst.fsf@gnu.org> (Bastien's message of "Mon, 13 Aug 2012 16:42:42 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Bernt Hansen , emacs-orgmode@gnu.org, Eric Schulte Hello, Bastien writes: > Eric Schulte writes: > >> I'm surprised that elisp doesn't provide any mechanism for local >> anonymous functions. > > (let ((my-local-func (lambda (a) (message a)))) > (funcall my-local-func "Hello!")) > > is fine. > > It's just for recursive local function -- letrec provides it now, > but apparently cl-labels was needed for that before. You can have recursive local functions: #+begin_src emacs-lisp (let* (len ; For byte compiler. (len (lambda (l) (if (not l) 0 (1+ (funcall len (cdr l))))))) (funcall len '(1 2 3))) #+end_src Regards, -- Nicolas Goaziou