* Ignore Local Variables list in source blocks
@ 2024-12-18 4:12 Joseph Turner
0 siblings, 0 replies; 3+ messages in thread
From: Joseph Turner @ 2024-12-18 4:12 UTC (permalink / raw)
To: Org Mode Mailing List
Hello!
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 Variables:
# foo: 'bar
# End:
#+END_EXAMPLE
This issue first came up in org-srs:
https://github.com/bohonghuang/org-srs/issues/7
Thank you,
Joseph
^ permalink raw reply [flat|nested] 3+ messages in thread
* Ignore Local Variables list in source blocks
@ 2024-12-18 4:13 Joseph Turner
2024-12-18 17:16 ` Max Nikulin
0 siblings, 1 reply; 3+ messages in thread
From: Joseph Turner @ 2024-12-18 4:13 UTC (permalink / raw)
To: Org Mode Mailing List; +Cc: bohonghuang
Hello!
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 Variables:
# foo: 'bar
# End:
#+END_EXAMPLE
This issue first came up in org-srs:
https://github.com/bohonghuang/org-srs/issues/7
Thank you,
Joseph
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Ignore Local Variables list in source blocks
2024-12-18 4:13 Ignore Local Variables list in source blocks Joseph Turner
@ 2024-12-18 17:16 ` Max Nikulin
0 siblings, 0 replies; 3+ messages in thread
From: Max Nikulin @ 2024-12-18 17:16 UTC (permalink / raw)
To: Joseph Turner, emacs-orgmode; +Cc: bohonghuang
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 Variables:
> # foo: 'bar
> # End:
> #+END_EXAMPLE
Have you tried to create a comment block below?
#+begin_comment
Deactivate local variables above in the example block:
Local Variables:
End:
#+end_comment
If it is not enough (and breaking the example into 2 parts is not
acceptable) then ask Emacs developers. I do not think, Org should (and
has a chance) to deal with this feature
(info "(emacs) Specifying File Variables")
<https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-18 17:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-18 4:13 Ignore Local Variables list in source blocks Joseph Turner
2024-12-18 17:16 ` Max Nikulin
-- strict thread matches above, loose matches on Subject: below --
2024-12-18 4:12 Joseph Turner
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).