On 2/1/07, Georg Baum <[EMAIL PROTECTED]> wrote:
Am Mittwoch, 31. Januar 2007 12:34 schrieb John McCabe-Dansted:
> So, what do you think of the patch below:?
It does not apply. Please send one against current svn, and as attachment
please, then it is easier for me to apply.
Its easier for me to send as well. (I just assumed it was more
convenient to read)
Most of the patch seems to be already applied. However, in r16997 if
you run ChkTeX n times, you get n copies of the errors. Attached patch
fixes this problem.
--
John C. McCabe-Dansted
PhD Student
University of Western Australia
Index: buffer.C
===================================================================
--- buffer.C (revision 16997)
+++ buffer.C (working copy)
@@ -1166,8 +1166,11 @@
Alert::error(_("chktex failure"),
_("Could not run chktex successfully."));
} else if (res > 0) {
+ ErrorList & errorList = errorLists_["ChkTeX"];
+ // Clear out old errors
+ errorList.clear();
// Fill-in the error list with the TeX errors
- bufferErrors(*this, terr, errorLists_["ChkTeX"]);
+ bufferErrors(*this, terr, errorList);
}
busy(false);