Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1957b847
Commit
1957b847
authored
Jul 25, 2008
by
Chong Yidong
Browse files
(tex-compilation-parse-errors): Check for
invalid filename strings when parsing tex errors (bug#376).
parent
3a94227c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
lisp/textmodes/tex-mode.el
lisp/textmodes/tex-mode.el
+6
-1
No files found.
lisp/textmodes/tex-mode.el
View file @
1957b847
...
...
@@ -2188,6 +2188,7 @@ for the error messages."
(
let*
((
this-error
(
copy-marker
begin-of-error
))
(
linenum
(
string-to-number
(
match-string
1
)))
(
error-text
(
regexp-quote
(
match-string
3
)))
try-filename
(
filename
;; Prefer --file-liner-error filename if we have it.
(
or
errfilename
...
...
@@ -2195,7 +2196,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
"(_"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment