With LaTeX-verbatim-environments-local, it is possible to declare environments that AUCTeX should consider as verbatim ones.
\documentclass{article}
\begin{document}
\begin{myverbatimenv}
First verbatim line.
Second verbatim line.
\end{myverbatimenv}
\end{document}
% Local Variables:
% LaTeX-verbatim-environments-local: ("myverbatimenv")
% End:
The problem is, such environments are subject to LaTeX-fill-region (C-c C-q C-r). Hence, if the whole buffer is selected (C-x h) and is filled (C-c C-q C-r), the verbatim environment becomes:
\begin{myverbatimenv}
First verbatim line. Second verbatim line.
\end{myverbatimenv}
whereas I would like:
\begin{myverbatimenv}
First verbatim line.
Second verbatim line.
\end{myverbatimenv}
How to prevent these LaTeX verbatim environments to be subject to LaTeX-fill-region?
myverbatimenv? Do you use a LaTeX package likefancyvrbetc.?fancyvrb:\DefineVerbatimEnvironment{myverbatimenv}{Verbatim}{fontsize=\normalsize}. Another use case: make use ofallttenvironment from the eponymous package, the latter being loaded, not directly, but by a third party package loaded in the document.