bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35284: 12.1.1; new verbatim environment wrongly commented out


From: jfbu
Subject: bug#35284: 12.1.1; new verbatim environment wrongly commented out
Date: Mon, 15 Apr 2019 16:57:09 +0200

Hi Keita,

Thanks.

But isn't there a bug even for the use case one wants the verbatim to be 
inserted inside the comment?

(which wasn't my case)

Look at commented out last line, and at the added blank line.

\documentclass{article}

\begin{document}
% \begin{verbatim}
% This is a comment
\def\foo#1{foo}
% another comment

% \end{verbatim}
% \end{document}


To be more precise I type

C-cC-e and then verbatim and Return

after having selected with the mouse 3 lines, and the cursor blinks at start of 
\end{document}

Best,

Jean-François


Le 15 avr. 2019 à 16:48, Ikumi Keita <address@hidden> a écrit :

> Hi Jean,
> 
> Please consider customizing the option `LaTeX-insert-into-comments'.
> You will get
> \documentclass{article}
> 
> \begin{document}
> \begin{verbatim}
> % This is a comment
> \def\foo#1{foo}
> % another comment
> \end{verbatim}
> \end{document}
> after the option is set to nil.
> 
> Regards,
> Ikumi Keita
> 
>>>>>> jfbu <address@hidden> writes:
>> Consider this source
> 
>> \documentclass{article}
> 
>> \begin{document}
>> % This is a comment
>> \def\foo#1{foo}
>> % another comment
>> \end{document}
> 
>> Select the three lines delimited by the document environment
> 
>> Hit C-cC-e verbatim
> 
>> Result:
> 
>> \documentclass{article}
> 
>> \begin{document}
>> % \begin{verbatim}
>> % This is a comment
>> \def\foo#1{foo}
>> % another comment
> 
>> % \end{verbatim}
>> % \end{document}






reply via email to

[Prev in Thread] Current Thread [Next in Thread]