Hello,

M-: (LaTeX-verbatim-environments)
("Verbatim" "BVerbatim" "phpcode" "sqlcode" "xmlcode" "htmlcode"
"htmlcode*" "Vcolor" "lstlisting" "minted" "phpcode*" "sqlcode*" ...)

C-h v LaTeX-verbatim-environments
("Verbatim" "BVerbatim" "phpcode" "sqlcode" "xmlcode" "htmlcode" "htmlcode*" 
"Vcolor" "lstlisting" "minted" "phpcode*" "sqlcode*" "xmlcode*" "Vcolor*" 
"lstlisting*" "minted*" "verbatim" "verbatim*")

I select the following code and type C-c C-e bar [ret]
8<------8<------8<------8<------8<------8<------8<------8<------8<------
truc
\begin{sqlcode}
a
b
c
\end{sqlcode}
8<------8<------8<------8<------8<------8<------8<------8<------8<------

I obtain
8<------8<------8<------8<------8<------8<------8<------8<------8<------
\begin{bar}
  truc
\begin{sqlcode}
  a b c
\end{sqlcode}
\end{bar}
8<------8<------8<------8<------8<------8<------8<------8<------8<------

The code inside the sqlcode environment should not be reformatted.

Regard,
-- 
   Philippe Ivaldi
http://www.piprime.fr/

_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to