Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I often debug LaTeX files and Emacs+AUCTeX does not show many informations about errors.

I always have the following message in the minibuffer:

LaTeX errors in `*~/my/file output*'. Use C-c ` to display.

and if I press C-c `

TeX-error: Error occured after last TeX file closed

which is completely useless.

If I want to track errors, I have to change buffer (go to output buffer) and looking by myself where is the problematic part inside a big file where 99% of informations are not errors.

At the opposite, Texmaker shows precisely the error message as you can see:

enter image description here

Therefore sometimes I use Texmaker to debug LaTeX file instead of Emacs.

I'm looking any solution to improve the way Emacs notify errors. How can have a concise view of errors which is really useful to debug with Emacs?

share|improve this question
1  
(For now, it appears.) Ignore that message regarding how to access the errors. On a long enough compile via C-c C-c, you'll see echoed in the mini-buffer Type `C-c C-l' to display results of compilation. So, use C-c C-l, which will split the main buffer into two and open in the lower a file called something like *~/<path to file> output*, which is essentially your console output. –  jon Jun 20 at 18:54
1  
You can search for lines that begin with ! to see errors, too. I've had this problem before, but I don't recall how I fixed it. Does tex.stackexchange.com/a/124259/17423 help? –  Sean Allred Jul 2 at 22:42

1 Answer 1

up vote 7 down vote accepted

In the development version of AUCTeX, an error overview has been implemented.

There are two possible setups: overview in the same frame of the TeX buffer and in a separate dedicated frame. This is how it looks like:

Same frame setup AUCTeX error overview, same frame


Separate frame setup AUCTeX error overview, separate frame

You can visit an error by clicking on its message or pressing RET. n and p can also be used to go to the next or previous error. Other suggestions welcome :-)

The message

TeX-error: Error occured after last TeX file closed

refers to a difficulty for AUCTeX to correctly parse the output log. This branch in AUCTeX repository addresses that problem. Hopefully, also this feature will be included in the next AUCTeX release (which appears to be quite rich, see items under News in 11.88 here), so stay tuned!

share|improve this answer
    
Ah, nice to know! –  jon Jun 20 at 18:56
    
Thanks for all these informations. I will wait the next release of AUCTeX. If I may say something about this (great) patch : perhaps you should allow the possibility to open the error list inside a buffer rather than a frame. It's easier to manage buffers than frames. –  ppr Jun 21 at 8:43
1  
@ppr I'm working on it, also because non-graphical displays don't support multiple frames. Anyway I find much easier to use a second frame (as ediff does), switching between frames requires only ALT + TAB in most window managers. –  giordano Jun 21 at 12:34
    
@ppr I managed to make the error overview open in the same frame of the TeX buffer, see the updated answer ;-). –  giordano Jun 27 at 23:49
    
Nice! I'm waiting the update of Debian sid AUCTeX package. Thanks a lot for your hard work. –  ppr Jun 29 at 16:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.