[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-AUCTeX] 11.87; TeX-parse-error problems
From: |
Luc Van Eycken |
Subject: |
[Bug-AUCTeX] 11.87; TeX-parse-error problems |
Date: |
Tue, 03 Dec 2013 14:25:21 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 |
TeX-parse-error() has problems with certain comment lines. Examples are
Package hyperref Message: Driver (autodetected): hpdftex.
from the hyperref package. In the first case the opening parenthesis is not
recognized as the start of a file because of the non-space ":" after the
closing parenthesis, but the closing parenthesis is seen as the end of a file.
Adding the same restriction "\\(?: \\|\r?$\\)" to the end of the "End of file"
detection solves the problem for the above example. However, it creates
problems for other comment lines, such as
[Loading MPS to PDF converter (version 2006.09.02).]
from context/base/supp-pdf.mkii.
For the moment, I applied the following patch, which seems to solve my problems.
Best regards,
Luc Van Eycken
------------------------------------------------------------------------
--- tex-buf.el.orig 2012-12-01 12:09:56.555035100 +0100
+++ tex-buf.el 2013-12-03 13:32:03.488384000 +0100
@@ -1479,6 +1479,10 @@
(concat
;; TeX error
"^\\(!\\|\\(.*?\\):[0-9]+:\\) \\|"
+ ;; Skip comment (or file) between parentheses in one line
+ ;; Avoids problems with "Driver (autodetected):" from hyperref
+ ;; and with "(version 2006.09.02)." from supp-pdf.mkii
+ "([^()\r\n{}]*)\\|"
;; New file
"(\\(\"[^\"]*?\"\\|/*\
\\(?:\\.+[^()\r\n{} \\/]*\\|[^()\r\n{} .\\/]+\
@@ -1568,7 +1572,8 @@
((match-beginning 6)
(setq TeX-error-file
(list (TeX-match-buffer 6)))
- t)))))
+ t)
+ (t t)))))
(defun TeX-error ()
"Display an error."
------------------------------------------------------------------------
Emacs : GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601)
of 2013-03-17 on MARVIN
Package: 11.87
current state:
==============
(setq
AUCTeX-date "2012-11-30"
window-system 'w32
LaTeX-version "2e"
TeX-auto-save nil
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")
("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
("View" "%V" TeX-run-discard-or-function 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")
)
)
- [Bug-AUCTeX] 11.87; TeX-parse-error problems,
Luc Van Eycken <=