bug-auctex
[Top][All Lists]
Advanced

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

[Bug-AUCTeX] 2007-12-28; TeX-next-error finds wrong file


From: Richard Everson
Subject: [Bug-AUCTeX] 2007-12-28; TeX-next-error finds wrong file
Date: Fri, 15 Feb 2008 00:43:12 +0000


Hello,

When invoking TeX-next-error after running (pdf)latex Auctex finds the
wrong master file because the output of the pdflatex program contains the version of Web2C in brackets which is parsed as the master file name. Here is the output beginning of the pdflatex output (some babel languages deleted):


Running `LaTeX' on `moodswings' with ``pdflatex - interaction=nonstopmode "\input" moodswings.tex''
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, .......
(./moodswings.tex
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/size11.clo))


The (Web2C 7.5.6) on the second line is interpreted as the master file name
and TeX-next-error jumps to a buffer called "Web2C 7.5.6" instead of the
real file which is ./moodswings.tex

The cause can be verified by deleting the  (Web2C 7.5.6)  in the output
buffer before invoking TeX-next-error, which then finds the correct error.


I've spent a while trying to find precisely where Auctex picks up the
filename, but am not sufficiently expert and don't think I would get
multi-file document parsing correct.  It seems that a fix would be to
ignore the first line of output, but perhaps that's too simplistic?

Any help would be gratefully received!
Many thanks,

Richard Everson.



`

Emacs : GNU Emacs 22.1.50.1 (i386-apple-darwin8.11.1, Carbon Version 1.6.0)
 of 2008-01-18 on seijiz.local
Package: 2007-12-28

current state:
==============
(setq
 AUCTeX-date "2007-12-28"
 window-system 'mac
 LaTeX-version "2e"
 TeX-style-path '("style" "auto" "/Users/reverson/doc/inputs/style"
                  "/Users/reverson/doc/inputs/auto"
"/Applications/Emacs.app/Contents/Resources/site- lisp/auctex/style" "/Volumes/Emacs/Emacs.app/Contents/Resources/var/ auctex")
 TeX-auto-save t
 TeX-parse-self t
 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]