Re: Ignore Local Variables list in source blocks

2024-12-20 Thread Joseph Turner
Nikolaos Chatzikonstantinou writes: [...] > If I do something like > > #+begin_comment > Local Variables: > End: > #+end_comment > > #+begin_src > Local Variables: > foo: 40 > End: > #+end_src > > Then the variable is not set, as Emacs does not look for a Local > Variables list more than once.

Re: Ignore Local Variables list in source blocks

2024-12-20 Thread Joseph Turner
Nikolaos Chatzikonstantinou writes: [...] > If I do something like > > #+begin_comment > Local Variables: > End: > #+end_comment > > #+begin_src > Local Variables: > foo: 40 > End: > #+end_src > > Then the variable is not set, as Emacs does not look for a Local > Variables list more than once.

Re: Ignore Local Variables list in source blocks

2024-12-20 Thread Joseph Turner
Max Nikulin writes: [...] >>> (info "(emacs) Specifying File Variables") >> By the way, is there a built-in command to copy that (info ...) sexp >> when viewing that info page? > > A short answer "C-0 c" or "C-0 w". Maybe I will send a longer one, > dropping bohonghuang from Cc. Thanks! Very g

Copy info node name (was: Re: Ignore Local Variables list in source blocks)

2024-12-20 Thread Max Nikulin
Due to a recent texinfo thread on emacs-devel, I have added RMS to Cc. On 20/12/2024 04:37, Joseph Turner wrote: Max Nikulin writes: (info "(emacs) Specifying File Variables") By the way, is there a built-in command to copy that (info ...) sexp when viewing that info page? TLDR; "C-0 c" or

Re: Ignore Local Variables list in source blocks

2024-12-20 Thread Nikolaos Chatzikonstantinou
On Fri, Dec 20, 2024 at 9:46 AM Max Nikulin wrote: > > On 20/12/2024 04:37, Joseph Turner wrote: > > Max Nikulin writes: > >> Have you tried to create a comment block below? > >> > >> #+begin_comment > >> Deactivate local variables above in the example block: > >> Local Variables: > >> End: > >> #

Re: Ignore Local Variables list in source blocks

2024-12-20 Thread Max Nikulin
On 20/12/2024 04:37, Joseph Turner wrote: Max Nikulin writes: Have you tried to create a comment block below? #+begin_comment Deactivate local variables above in the example block: Local Variables: End: #+end_comment In my testing, in order to make Emacs ignore the `foo: bar' binding, the emp

Re: Ignore Local Variables list in source blocks

2024-12-19 Thread General discussions about Org-mode.
Max Nikulin writes: > On 18/12/2024 11:13, Joseph Turner wrote: >> Is there a way to make Emacs ignore Local Variables lists which >> appear >> inside of source blocks? >> For example, is there a way to include the following content in an >> Org >> file without Emacs attempting to locally set foo

Re: Ignore Local Variables list in source blocks

2024-12-18 Thread Max Nikulin
On 18/12/2024 11:13, Joseph Turner wrote: Is there a way to make Emacs ignore Local Variables lists which appear inside of source blocks? For example, is there a way to include the following content in an Org file without Emacs attempting to locally set foo to bar? #+BEGIN_EXAMPLE # Local V