comparison .elisp/settings/50.compilation-tweaks.el @ 242:1ba5a7b0a328

compilation mode: handle mercurial check-code output
author Augie Fackler <durin42@gmail.com>
date Sat, 19 Mar 2011 17:06:52 -0500
parents 1947b2c08f29
children b0264224e2ec
comparison
equal deleted inserted replaced
241:7249fab44bcd 242:1ba5a7b0a328
2 2
3 (pushnew 3 (pushnew
4 '(mercurial-test-output-tb 4 '(mercurial-test-output-tb
5 "\+ File \".*/install/lib/python/\\([^\"]*\\)\", line \\([0-9]*\\)\\(, in .*\\)?$" 5 "\+ File \".*/install/lib/python/\\([^\"]*\\)\", line \\([0-9]*\\)\\(, in .*\\)?$"
6 1 2) compilation-error-regexp-alist-alist) 6 1 2) compilation-error-regexp-alist-alist)
7 (pushnew
8 '(mercurial-check-code-output-tb
9 "\+\\(/[^:]+\\):\\([0-9]+\\):$"
10 1 2) compilation-error-regexp-alist-alist)
7 ;; add to the end so this gets priority 11 ;; add to the end so this gets priority
8 (setq compilation-error-regexp-alist 12 (setq compilation-error-regexp-alist
9 (append compilation-error-regexp-alist '(mercurial-test-output-tb))) 13 (append compilation-error-regexp-alist '(mercurial-test-output-tb)))
14 (setq compilation-error-regexp-alist
15 (append compilation-error-regexp-alist '(mercurial-check-code-output-tb)))
10 16
11 ;; Use the next s-exp to remove the last list element if you need to 17 ;; Use the next s-exp to remove the last list element if you need to
12 ;; live-edit this regex 18 ;; live-edit this regex
13 ;; (setq compilation-error-regexp-alist-alist 19 ;; (setq compilation-error-regexp-alist-alist
14 ;; (cdr compilation-error-regexp-alist-alist)) 20 ;; (cdr compilation-error-regexp-alist-alist))