view .elisp/settings/50.compilation-tweaks.el @ 233:da06f9fd5016

update-source-trees: git fetch all remotes instead of doing git pull origin master
author Augie Fackler <durin42@gmail.com>
date Sat, 16 Oct 2010 18:50:32 -0500
parents 1947b2c08f29
children 1ba5a7b0a328
line wrap: on
line source

(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))))