emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Joseph Turner <joseph@breatheoutbreathe.in>
To: Nikolaos Chatzikonstantinou <nchatz314@gmail.com>
Cc: emacs-orgmode@gnu.org,  bohonghuang@qq.com
Subject: Re: Ignore Local Variables list in source blocks
Date: Fri, 20 Dec 2024 18:13:37 -0800	[thread overview]
Message-ID: <871py1hjfy.fsf@breatheoutbreathe.in> (raw)
In-Reply-To: <CAAQmekd9fpb3qeZZ3DjbBX5LYtDPNbwjZZjuqa9RhuOph29MZw@mail.gmail.com> (Nikolaos Chatzikonstantinou's message of "Fri, 20 Dec 2024 09:53:49 -0500")

Nikolaos Chatzikonstantinou <nchatz314@gmail.com> 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.

Thanks!  This approach is a bit fragile, since Emacs only looks at the
last 3000 characters for "Local Variables:".

Joseph


  parent reply	other threads:[~2024-12-21  2:14 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
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 [this message]
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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871py1hjfy.fsf@breatheoutbreathe.in \
    --to=joseph@breatheoutbreathe.in \
    --cc=bohonghuang@qq.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nchatz314@gmail.com \
    /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 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).