From: Max Nikulin <manikulin@gmail.com>
To: Joseph Turner <joseph@breatheoutbreathe.in>, emacs-orgmode@gnu.org
Cc: bohonghuang@qq.com
Subject: Re: Ignore Local Variables list in source blocks
Date: Thu, 19 Dec 2024 00:16:05 +0700 [thread overview]
Message-ID: <a527c2c7-d951-4981-8181-29ca8500b379@gmail.com> (raw)
In-Reply-To: <87ldwdeih6.fsf@breatheoutbreathe.in>
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>
next prev parent reply other threads:[~2024-12-18 17:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-18 4:13 Ignore Local Variables list in source blocks Joseph Turner
2024-12-18 17:16 ` Max Nikulin [this message]
2024-12-19 21:37 ` Joseph Turner via General discussions about Org-mode.
2024-12-20 14:46 ` Max Nikulin
2024-12-20 14:53 ` Nikolaos Chatzikonstantinou
2024-12-21 2:13 ` Joseph Turner
2024-12-21 2:13 ` Joseph Turner
2024-12-21 2:11 ` Joseph Turner
2024-12-20 15:37 ` Copy info node name (was: Re: Ignore Local Variables list in source blocks) Max Nikulin
-- strict thread matches above, loose matches on Subject: below --
2024-12-18 4:12 Ignore Local Variables list in source blocks Joseph Turner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a527c2c7-d951-4981-8181-29ca8500b379@gmail.com \
--to=manikulin@gmail.com \
--cc=bohonghuang@qq.com \
--cc=emacs-orgmode@gnu.org \
--cc=joseph@breatheoutbreathe.in \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.