+2011-01-31 Sam Steingold <sds@gnu.org>
+
+ * progmodes/compile.el (compilation-enable-debug-messages):
+ Add a variable to make the parsing messages introduced in
+ 2011-01-28T22:12:05Z!monnier@iro.umontreal.ca optional.
+ (compilation-parse-errors, compilation--flush-parse): Use it.
+
+
2011-01-31 Deniz Dogan <deniz.a.m.dogan@gmail.com>
* net/rcirc.el: Clean log filenames (Bug#7933).
:group 'compilation
:version "22.1")
+(defvar compilation-enable-debug-messages nil
+ "Enable debug messages while parsing the compilation buffer.")
+
(defun compilation-set-skip-threshold (level)
"Switch the `compilation-skip-threshold' level."
(interactive
"Parse errors between START and END.
The errors recognized are the ones specified in RULES which default
to `compilation-error-regexp-alist' if RULES is nil."
- (message "compilation-parse-errors: %S %S" start end)
+ (when compilation-enable-debug-messages
+ (message "compilation-parse-errors: %S %S" start end))
(dolist (item (or rules compilation-error-regexp-alist))
(if (symbolp item)
(setq item (cdr (assq item
(goto-char start)
(while (re-search-forward pat end t)
-
(when (setq props (compilation-error-properties
file line end-line col end-col (or type 2) fmt))
(defun compilation--flush-parse (start end)
"Mark the region between START and END for re-parsing."
- (message "compilation--flush-parse: %S %S" start end)
+ (when compilation-enable-debug-messages
+ (message "compilation--flush-parse: %S %S" start end))
(if (markerp compilation--parsed)
(move-marker compilation--parsed (min start compilation--parsed))))