changeset 212:4716b238db2e

emacs: add compilation-mode regexp for hg test tracebacks
author Augie Fackler <durin42@gmail.com>
date Thu, 13 May 2010 09:30:46 -0500
parents 8980dc2deda0
children 1947b2c08f29
files .elisp/settings/50.compilation-tweaks.el
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/.elisp/settings/50.compilation-tweaks.el
@@ -0,0 +1,16 @@
+(require 'compile)
+
+(pushnew
+ '(mercurial-test-output-tb
+   "\+  File \".*/install/lib/python/\\([^\"]*\\)\", line \\([0-9]*\\), in .*$"
+    1 2) compilation-error-regexp-alist-alist)
+;; add to the end so this gets priority
+(setq compilation-error-regexp-alist
+      (append compilation-error-regexp-alist '(mercurial-test-output-tb)))
+
+;; Use the next s-exp to remove the last list element if you need to
+;; live-edit this regex
+;; (setq compilation-error-regexp-alist-alist
+;;         (cdr compilation-error-regexp-alist-alist))
+;; (setq compilation-error-regexp-alist
+;;         (reverse (cdr (reverse compilation-error-regexp-alist))))