On 09/08/2025 22:29, Ihor Radchenko wrote:
Uwe Brauer writes:
#+begin_src
%%% Local Variables:
%%% mode: LaTeX
%%% TeX-master: t
%%% End:
#+end_src
When I close and reopen the file the buffer is now in LaTeX mode, so the
src block was not recognised as src block? Is this a bug?
[...]
You may probably provide a dummy local variable block to suppress
processing the one inside your src block.
Extra local variables block is a fragile approach if you have multiple
examples.
Max Nikulin to emacs-devel. Re: Ignore a Local Variables list. Tue, 24
Dec 2024 21:44:04 +0700.
<https://yhetil.org/emacs-devel/17d13987-02cf-47fa-89a2-aaa733daf...@gmail.com>
Commented out form feed (C-L) control sequence at the end of the file is
a more reliable trick.
Max Nikulin to emacs-orgmode. Re: Form feed characters break odt export.
Tue, 24 Dec 2024 23:23:09 +0700.
<https://list.orgmode.org/42b56941-c674-4cba-a850-dab3331b2...@gmail.com>
#+begin_comment
Keep this block at the bottom of the file.
It instructs Emacs to ignore examples
of local variables sections above, see
<info:emacs#Specifying File Variables>
The following line contains the form feed 0x0c character.
^L
#+end_comment