changeset 80641:f54ac2f1f062

(tex-compilation-parse-errors): Check for invalid filename strings when parsing tex errors (bug#376).
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 25 Jul 2008 18:41:50 +0000
parents 86922f21ad77
children 3928ddbb7841
files lisp/textmodes/tex-mode.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el	Fri Jul 25 18:41:36 2008 +0000
+++ b/lisp/textmodes/tex-mode.el	Fri Jul 25 18:41:50 2008 +0000
@@ -2047,7 +2047,11 @@
 		    (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 "(_"))