From 13e30a050c500c515031a586daf4aa1ced8f0d78 Mon Sep 17 00:00:00 2001 From: Sebastian Kuhnert Date: Tue, 2 Jun 2009 14:51:19 +0000 Subject: texall script: work around a bug in auctex's error parser --- texall | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'texall') diff --git a/texall b/texall index 47ad016..ad7fb04 100755 --- a/texall +++ b/texall @@ -813,6 +813,7 @@ def runtex(tex, texname, realname, dirname, reason=""): outf = None else: def outf(d): + d = re_fixemacserrorshowing.sub("", d) return re_rmligsfile.sub("\\1.tex", d) if texname != realname: run([tex, "-interaction", opts.interactionmode, "-jobname", texname[:-4], realname], dirname, outf=outf, reason=reason) @@ -920,7 +921,7 @@ try: re_graphics = re.compile('\\\\includegraphics(\\[.*?\\])?\\{([^}]*)\\}') re_DTLdep = re.compile('\\\\DTLload(rawdb|db)\\{.*?\\}\\{([^}]*)\\}') - re_bibliography = re.compile('\\\\bibliography\\{([^}]*)\\}') + re_bibliography = re.compile('^[^%\n\r]*\\\\bibliography\\{([^}]*)\\}', re.M) re_commawhitespace = re.compile('\\s*,\\s*') @@ -932,6 +933,7 @@ try: re_error = re.compile('^! ', re.M) re_rmligsfile = re.compile("([^/ ]+)-rmligs\\.tex") + re_fixemacserrorshowing = re.compile(" \(Web2C [0-9.]*\)") if __name__ == "__main__": #import cProfile -- cgit v1.2.3