Subject: Re: bug#376: latex error message starts dired

From: Ralf Angeli <[email-masked]>
Date: Sun, 08 Jun 2008 10:03:38 +0200

* Nate Eldredge (2008-06-08) writes:

> Here is the output of latex, as it appears in the *tex-shell* buffer.

> Runaway argument?
>  g(\polar , s) &= \Re \phi (se^{i\polar })\frac {1}{4\pi }s \psi (i(\pi \ETC.
> ! Paragraph ended before \align was complete.

The parser finds this error and subsequently tries to determine the file
name.  In course of that it checks the "(\pi" construct with point right
before the backslash.  In this case the form
(file-readable-p (thing-at-point 'filename))
returns t and the file name is set to an empty string.  (This is what
`(thing-at-point 'filename)' returns.)

I'm not sure if this is a problem with `thing-at-point' or
`file-readable-p'.

As a workaround you could enable file:line:error messages for latex.

-- 
Ralf