comparison .elisp/settings/50.compilation-tweaks.el @ 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
children 1947b2c08f29
comparison
equal deleted inserted replaced
211:8980dc2deda0 212:4716b238db2e
1 (require 'compile)
2
3 (pushnew
4 '(mercurial-test-output-tb
5 "\+ File \".*/install/lib/python/\\([^\"]*\\)\", line \\([0-9]*\\), in .*$"
6 1 2) compilation-error-regexp-alist-alist)
7 ;; add to the end so this gets priority
8 (setq compilation-error-regexp-alist
9 (append compilation-error-regexp-alist '(mercurial-test-output-tb)))
10
11 ;; Use the next s-exp to remove the last list element if you need to
12 ;; live-edit this regex
13 ;; (setq compilation-error-regexp-alist-alist
14 ;; (cdr compilation-error-regexp-alist-alist))
15 ;; (setq compilation-error-regexp-alist
16 ;; (reverse (cdr (reverse compilation-error-regexp-alist))))