auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] bug in auctex highlighting


From: Ralf Hemmecke
Subject: [AUCTeX-devel] bug in auctex highlighting
Date: Fri, 21 May 2010 07:37:55 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4

Hi,

last night I sent the following bug to address@hidden, but I cannot
see it see it here http://lists.gnu.org/archive/html/bug-auctex/.

Is there somewhere a proper bugtracker for auctex? Or must I assume that
auctex manages issues just via mailing lists?

Anyway, I have not much experience with auctex and elisp either, but
could somebody tell me about the logic how verbatim environments are
recognised?

There seems to be LaTeX-verbatim-p in latex.el relevant for this
purpose. but what is the actual workflow and where is it stored that the
cursor is currently inside a verbatim environment?

Best regards
Ralf

=====================================================================
Hello

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.

Ralf

---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}
  \begin{myverbatim}{chunkname}    % first verbatim line
\end{verbatim}
and                                % still verbatim
\begin{verbatim}
  \end{myverbatim}                 % last verbatim line
\end{verbatim}                     % closes verbatim
\end{document}
---rhxEND p.tex
------------------------------------------------------------------------

Emacs  : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-03-29 on rothera, modified by Debian
Package: 11.85

current state:
==============
(setq
 AUCTeX-date "2008-02-10"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("style" "auto" "/home/hemmecke/public/AUX/tex/style"
                  "/home/hemmecke/software/share/tex/style"
                  "/home/hemmecke/public/AUX/tex/auto"
                  "/home/hemmecke/software/share/tex/auto"
                  "/usr/share/emacs/23.1/site-lisp/auctex/style"
                  "/var/lib/auctex/emacs23")
 TeX-auto-save nil
 TeX-parse-self nil
 TeX-master t
 TeX-command-list '(("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t"
                     TeX-run-TeX nil
                     (plain-tex-mode ams-tex-mode texinfo-mode) :help
                     "Run plain TeX")
                    ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil
                     (latex-mode doctex-mode) :help "Run LaTeX")
                    ("Makeinfo" "makeinfo %t" TeX-run-compile nil
                     (texinfo-mode) :help "Run Makeinfo with Info output")
                    ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil
                     (texinfo-mode) :help "Run Makeinfo with HTML output")
                    ("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t"
                     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
                    ("ConTeXt" "texexec --once --texutil %(execopts)%t"
                     TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
                    ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil
                     (context-mode) :help "Run ConTeXt until completion")
                    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
                     "Run BibTeX")
                    ("View" "%V" TeX-run-discard t t :help "Run Viewer")
                    ("Print" "%p" TeX-run-command t t :help "Print the file")
                    ("Queue" "%q" TeX-run-background nil t :help
                     "View the printer queue" :visible TeX-queue-command)
                    ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help
                     "Generate PostScript file")
                    ("Index" "makeindex %s" TeX-run-command nil t :help
                     "Create index file")
                    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
                     :help "Check LaTeX file for correctness")
                    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
                     t :help "Spell-check the document")
                    ("Clean" "TeX-clean" TeX-run-function nil t :help
                     "Delete generated intermediate files")
                    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
                     "Delete generated intermediate and output files")
                    ("Other" "" TeX-run-command t t :help
                     "Run an arbitrary command")
                    )
 )



reply via email to

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