GNU bug report logs -
#376
latex error message starts dired
Previous Next
Reported by: Nate Eldredge <neldredge <at> ucsd.edu>
Date: Sun, 8 Jun 2008 03:50:03 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
Full log
Message #35 received at 376 <at> emacsbugs.donarmstrong.com (full text, mbox):
* Chong Yidong (2008-07-25) writes:
>> 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.)
>
> How bout the following patch to tex-mode?
> ! (while (not
> ! (and (setq try-filename (thing-at-point
> ! 'filename))
> ! (not (string= "" try-filename))
> ! (file-readable-p try-filename)))
Looks okay (without actually trying it). (I'd probably move the `setq'
call into the `string=' call.) Of course it will still lose if there is
a string after the paren which corresponds to the name of an existing
file, but the chances for that are really slim.
--
Ralf
This bug report was last modified 16 years and 360 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.