bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 11.85; verbatim highlight problem


From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 11.85; verbatim highlight problem
Date: Sat, 22 May 2010 15:38:17 +0200

* 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



reply via email to

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