Göktuğ Kayaalp <s...@gkayaalp.com> writes:

> On 2018-05-01 13:55 +02, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:
>
>> No, because you can use Noweb syntax wherever you need these local
>> variables set:
>>
>>           <<local-variables>>
>
> 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.

Reply via email to