]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-compilation-parse-errors): Check for
authorChong Yidong <cyd@stupidchicken.com>
Fri, 25 Jul 2008 18:41:50 +0000 (18:41 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 25 Jul 2008 18:41:50 +0000 (18:41 +0000)
invalid filename strings when parsing tex errors (bug#376).

lisp/textmodes/tex-mode.el

index a42a195b8ec8fe25e92235b484ebe8af384f9f18..da61ad5d893d99a883379d51615870e654fdf7e3 100644 (file)
@@ -2047,7 +2047,11 @@ for the error messages."
                    (with-syntax-table tex-error-parse-syntax-table
                      (backward-up-list 1)
                      (skip-syntax-forward "(_")
-                     (while (not (file-readable-p (thing-at-point 'filename)))
+                     (while (not 
+                             (and (setq try-filename (thing-at-point
+                                                      'filename))
+                                  (not (string= "" try-filename))
+                                  (file-readable-p try-filename)))
                        (skip-syntax-backward "(_")
                        (backward-up-list 1)
                        (skip-syntax-forward "(_"))