* Ralf Hemmecke (2010-05-21) writes:

> My .emacs file is
>
> ---rhxBEGIN .emacs
> (custom-set-variables
>  '(LaTeX-verbatim-environments (quote ("verbatim" "verbatim*"
> "myverbatim")))
>  '(inhibit-startup-screen t))
> (custom-set-faces)
> ---rhxEND .emacs
>
> The highlighting in the file p.tex below is wrong.

I don't see a problem with the CVS version of AUCTeX and I expect this
to be the same with 11.86.

> ---rhxBEGIN p.tex
> \documentclass[a4paper]{article}
> \usepackage{listings}
> \lstnewenvironment{myverbatim}%
>   {\lstset{basicstyle=\scriptsize\ttfamily,gobble=2}}%
>   {}
> \lstset{basicstyle=\scriptsize}
> \begin{document}
> Also put a % right after {verbatim} and look what happens
> with the highlighting.
> \begin{verbatim}

IIRC it is unsafe to add stuff like a comment starter on the same line
after \begin{verbatim}.  Unfortunately I don't remember where I read
this and what the exact issue was.

-- 
Ralf

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

Reply via email to