From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: funny emacs-lisp macro behavior in org-babel related to lexical-binding Date: Sat, 16 Apr 2016 09:41:45 -0400 Message-ID: References: <87wpnysikp.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11469b98dd476405309a4923 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arQTs-0004G9-Gb for emacs-orgmode@gnu.org; Sat, 16 Apr 2016 09:41:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arQTr-0004RZ-64 for emacs-orgmode@gnu.org; Sat, 16 Apr 2016 09:41:48 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:33067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arQTq-0004RM-VU for emacs-orgmode@gnu.org; Sat, 16 Apr 2016 09:41:47 -0400 Received: by mail-wm0-x230.google.com with SMTP id f198so13919172wme.0 for ; Sat, 16 Apr 2016 06:41:46 -0700 (PDT) In-Reply-To: <87wpnysikp.fsf@nicolasgoaziou.fr> 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" To: John Kitchin , emacs-orgmode --001a11469b98dd476405309a4923 Content-Type: text/plain; charset=UTF-8 That sounds fine to me. Would you then use :lexical nil in a header to turn it off? or a new custom variable? John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Fri, Apr 15, 2016 at 4:49 PM, Nicolas Goaziou wrote: > Hello, > > John Kitchin writes: > > > So, I would like to propose adding the third argument to the eval > > statement that reads > > > > (assoc :lexical params) > > > > to turn on lexical eval if you want it. > > > > What do you think? > > I assume you're talking about ob-emacs-lisp.el. This sounds like a good > idea. However, I suggest to make lexical binding the default value, to > be on par with the rest of Emacs. > > > Regards, > > -- > Nicolas Goaziou > --001a11469b98dd476405309a4923 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
That sounds fine to me. Would you then use=C2=A0

<= /div>
:lexical nil=C2=A0

in a header to turn i= t off? or a new custom variable?

John

-----------------------------------
Professor = John Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical Engineer= ing
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803

On Fri, Apr 15, 2016 at 4:49 PM, Nicolas Goa= ziou <mail@nicolasgoaziou.fr> wrote:
Hello,

John Kitchin <jkitchin@andrew= .cmu.edu> writes:

> So, I would like to propose adding the third argument to the eval
> statement that reads
>
> (assoc :lexical params)
>
> to turn on lexical eval if you want it.
>
> What do you think?

I assume you're talking about ob-emacs-lisp.el. This sounds like= a good
idea. However, I suggest to make lexical binding the default value, to
be on par with the rest of Emacs.


Regards,

--
Nicolas Goaziou

--001a11469b98dd476405309a4923--