From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: Re: Add ob-sclang.el for sclang Org-mode babel support in contrib/ Date: Sun, 18 Jun 2017 23:32:03 +0200 Message-ID: <87bmplrnho.fsf@bzg.fr> References: <87ink4z27l.fsf@nicolasgoaziou.fr> <87y3suis4y.fsf@nicolasgoaziou.fr> <87wp8dpgsf.fsf@bzg.fr> <87fuey28ch.fsf@bzg.fr> <87bmpmg058.fsf@nicolasgoaziou.fr> <87mv95ofs4.fsf@bzg.fr> <87injtd4mb.fsf@nicolasgoaziou.fr> <87wp89rsfe.fsf@bzg.fr> <87a855c9ru.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMhno-0001pl-2T for emacs-orgmode@gnu.org; Sun, 18 Jun 2017 17:32:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMhnk-0005CH-3g for emacs-orgmode@gnu.org; Sun, 18 Jun 2017 17:32:12 -0400 In-Reply-To: <87a855c9ru.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 18 Jun 2017 22:37:25 +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" To: Nicolas Goaziou Cc: Org-mode Hi Nicolas, Nicolas Goaziou writes: > There is absolutely no drawback in using lexical binding. Since Emacs > 24.1, it _is_ the default for Elisp: every Elisp file created activates > it, the other binding being for compatibility with older libraries. Maybe I miss something: when I create a file with C-x C-f whatever.el RET it does not use a template or does not get created with lexical binding on. What are you referring to when you say "every Elisp file created activates = it"? > Please, pretty please, don't suggest it is different. Quoting the Emacs Lisp manual: This is the =E2=80=98GNU Emacs Lisp Reference Manual=E2=80=99 correspondi= ng to Emacs version 26.0.50. ... Scoping Rules for Variable Bindings * Dynamic Binding:: The default for binding local variables in Em= acs. * Dynamic Binding Tips:: Avoiding problems with dynamic binding. * Lexical Binding:: A different type of local variable binding. ... 12.10.1 Dynamic Binding ----------------------- =20=20 By default, the local variable bindings made by Emacs are dynamic bindings. When a variable is dynamically bound, its current binding at any point in the execution of the Lisp program is simply the most recently-created dynamic local binding for that symbol, or the global binding if there is no such local binding. To me the manual clearly says dynamic binding is the default, and that's why using lexical binding requires additional info in the file. Whether lexical binding is a good default or not is another question, and whether lexical-binding:t makes sense in a file with no binding yet another, third one. --=20 Bastien