Uwe Brauer <o...@mat.ucm.es> writes: > I have a org file containing the lines > > #+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?
No, this is expected Emacs's behavior. Check out 51.2.4 Local Variables in Files section of Emacs manual. You may probably provide a dummy local variable block to suppress processing the one inside your src block. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>