bug-auctex
[Top][All Lists]
Advanced

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

[Bug-AUCTeX] Error management and master files


From: Fabrice Ben Hamouda
Subject: [Bug-AUCTeX] Error management and master files
Date: Fri, 06 Sep 2013 21:46:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130806 Thunderbird/17.0.8

Hi,

If we use a master file (for example "main.tex") with an input file in another folder (for example "tex/intro.tex"), and if we compile our project, while in buffer "main.tex", and then go to next error (TeX-next-error), while in buffer "tex/intro.tex", we get the following error message:
"no buffers contain error message locations".

The problem seems to be that "TeX-active-buffer" fails in "tex/intro.tex", because "TeX-process-buffer" is not run within buffer "tex/intro.tex" ("abbreviate-file-name" called in "TeX-process-buffer-name" does not use the correct parent folder).

Here is a patch:

------------------

--- a/tex-buf.el    2012-11-26 20:56:21.000000000 +0100
+++ b/tex-buf.el    2013-09-06 21:42:11.080853299 +0200
@@ -273,9 +273,8 @@
   (interactive "P")
   (if (null (TeX-active-buffer))
       (next-error reparse)
- (funcall (TeX-process-get-variable (with-current-buffer TeX-command-buffer
-                     (TeX-active-master))
-                       'TeX-parse-function)
+    (funcall (with-current-buffer TeX-command-buffer
+ (TeX-process-get-variable (TeX-active-master) 'TeX-parse-function))
          reparse)))

 (defun TeX-previous-error (arg)
@@ -1250,8 +1249,8 @@
 (defun TeX-active-buffer ()
   "Return the buffer of the active process for this buffer."
   (and TeX-command-buffer
-       (TeX-process-buffer (with-current-buffer TeX-command-buffer
-                 (TeX-active-master)))))
+       (with-current-buffer TeX-command-buffer
+     (TeX-process-buffer (TeX-active-master)))))

 (defun TeX-active-master (&optional extension nondirectory)
   "The master file currently being compiled.

------------------

Best regards,
Fabrice



reply via email to

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