From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Inheriting some local variables from source code block editing buffers Date: Tue, 01 May 2018 16:00:35 +0200 Message-ID: <876047h3wc.fsf@nicolasgoaziou.fr> References: <874ljt3bs0.fsf@gnu.org> <87h8nrkbpw.fsf@nicolasgoaziou.fr> <878t93ioa1.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]:45202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDVpn-0006rM-FC for emacs-orgmode@gnu.org; Tue, 01 May 2018 10:00:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDVpi-000273-Kp for emacs-orgmode@gnu.org; Tue, 01 May 2018 10:00:47 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:55095) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fDVpi-00021r-Dv for emacs-orgmode@gnu.org; Tue, 01 May 2018 10:00:42 -0400 In-Reply-To: (=?utf-8?B?IkfDtmt0dcSf?= Kayaalp"'s message of "Tue, 01 May 2018 16:39:22 +0300") 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: =?utf-8?B?R8O2a3R1xJ8=?= Kayaalp Cc: emacs-orgmode@gnu.org G=C3=B6ktu=C4=9F Kayaalp writes: > On 2018-05-01 13:55 +02, Nicolas Goaziou wrote: > >> No, because you can use Noweb syntax wherever you need these local >> variables set: >> >> <> > > This seems to only expand when tangling, When tangling, exporting and evaluating. > not while editing via C-c '. Correct. > What I propose is about setting up the editing buffer (e.g. making > sure in the org-edit-special lexical-binding is the same as in the > org-mode buffer so that the results from live evaluation and from when > tangling and loading the file agree). Lexical binding is not a good example, because there's already a header argument to control this: #+begin_src emacs-lisp :lexical t ... #+end_src and you can set header arguments document-wise, or globally. Other file local variables you could set in an Org buffer do not usually make sense in programming languages. I'm Cc'ing Emacs Org mailing list.