Commit 7483cef1 authored by Chong Yidong's avatar Chong Yidong
Browse files

(tex-compilation-parse-errors): Check for

invalid filename strings when parsing tex errors (bug#376).
parent 99ab9fa4
......@@ -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
(not (string= "" try-filename))
(file-readable-p try-filename)))
(skip-syntax-backward "(_")
(backward-up-list 1)
(skip-syntax-forward "(_"))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment