aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2011-01-31 11:49:44 -0500
committerSam Steingold2011-01-31 11:49:44 -0500
commit038714abef7035381fd6b45fba98abbe86bc4400 (patch)
tree1fa056f8c05501d5eeccea417af89e3d15890b69
parent186ecaf1a6d22b7e0eae83ba31136d90fb5a49a6 (diff)
downloademacs-038714abef7035381fd6b45fba98abbe86bc4400.tar.gz
emacs-038714abef7035381fd6b45fba98abbe86bc4400.zip
* lisp/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.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/progmodes/compile.el10
2 files changed, 15 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d9e4d58af59..462d57745c5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12011-01-31 Sam Steingold <sds@gnu.org>
2
3 * progmodes/compile.el (compilation-enable-debug-messages):
4 Add a variable to make the parsing messages introduced in
5 2011-01-28T22:12:05Z!monnier@iro.umontreal.ca optional.
6 (compilation-parse-errors, compilation--flush-parse): Use it.
7
8
12011-01-31 Deniz Dogan <deniz.a.m.dogan@gmail.com> 92011-01-31 Deniz Dogan <deniz.a.m.dogan@gmail.com>
2 10
3 * net/rcirc.el: Clean log filenames (Bug#7933). 11 * net/rcirc.el: Clean log filenames (Bug#7933).
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 5bb3bf227f2..8bc0f221beb 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -732,6 +732,9 @@ info, are considered errors."
732 :group 'compilation 732 :group 'compilation
733 :version "22.1") 733 :version "22.1")
734 734
735(defvar compilation-enable-debug-messages nil
736 "Enable debug messages while parsing the compilation buffer.")
737
735(defun compilation-set-skip-threshold (level) 738(defun compilation-set-skip-threshold (level)
736 "Switch the `compilation-skip-threshold' level." 739 "Switch the `compilation-skip-threshold' level."
737 (interactive 740 (interactive
@@ -1169,7 +1172,8 @@ FMTS is a list of format specs for transforming the file name.
1169 "Parse errors between START and END. 1172 "Parse errors between START and END.
1170The errors recognized are the ones specified in RULES which default 1173The errors recognized are the ones specified in RULES which default
1171to `compilation-error-regexp-alist' if RULES is nil." 1174to `compilation-error-regexp-alist' if RULES is nil."
1172 (message "compilation-parse-errors: %S %S" start end) 1175 (when compilation-enable-debug-messages
1176 (message "compilation-parse-errors: %S %S" start end))
1173 (dolist (item (or rules compilation-error-regexp-alist)) 1177 (dolist (item (or rules compilation-error-regexp-alist))
1174 (if (symbolp item) 1178 (if (symbolp item)
1175 (setq item (cdr (assq item 1179 (setq item (cdr (assq item
@@ -1225,7 +1229,6 @@ to `compilation-error-regexp-alist' if RULES is nil."
1225 1229
1226 (goto-char start) 1230 (goto-char start)
1227 (while (re-search-forward pat end t) 1231 (while (re-search-forward pat end t)
1228
1229 (when (setq props (compilation-error-properties 1232 (when (setq props (compilation-error-properties
1230 file line end-line col end-col (or type 2) fmt)) 1233 file line end-line col end-col (or type 2) fmt))
1231 1234
@@ -1299,7 +1302,8 @@ to `compilation-error-regexp-alist' if RULES is nil."
1299 1302
1300(defun compilation--flush-parse (start end) 1303(defun compilation--flush-parse (start end)
1301 "Mark the region between START and END for re-parsing." 1304 "Mark the region between START and END for re-parsing."
1302 (message "compilation--flush-parse: %S %S" start end) 1305 (when compilation-enable-debug-messages
1306 (message "compilation--flush-parse: %S %S" start end))
1303 (if (markerp compilation--parsed) 1307 (if (markerp compilation--parsed)
1304 (move-marker compilation--parsed (min start compilation--parsed)))) 1308 (move-marker compilation--parsed (min start compilation--parsed))))
1305 1309