view .elisp/settings/50.compilation-tweaks.el @ 453:6f3342c9e53d

emacs: use exec-path-from-shell-initialize on OS X This should mean I can start emacs like a normal application and have things work.
author Augie Fackler <raf@durin42.com>
date Sat, 06 Jan 2018 17:03:00 -0500
parents b0264224e2ec
children 6bcdbe7b8e42
line wrap: on
line source

(require 'compile)

(setq af--hg-test-traceback
      (rx
       bol
       "+  File \""
       (one-or-more not-newline)
       "/install/lib/python/"
       (group (one-or-more (not (any "\""))))
       ", line "
       (group (one-or-more digit))
       )
      )

(setq compilation-error-regexp-alist-alist
  (cons '(mercurial-test-output-tb af--hg-test-traceback 1 2)
        (assq-delete-all 'mercurial-test-output-tb
                         compilation-error-regexp-alist-alist)))

(setq af--hg-check-code-error-re
      (rx
       bol
       "+  "
       (group (one-or-more not-newline))
       ":"
       (group (one-or-more digit))
       ":"
       )
      )

(setq compilation-error-regexp-alist-alist
  (cons '(mercurial-check-code-output af--hg-check-code-error-re 1 2)
        (assq-delete-all 'mercurial-check-code-output
                          compilation-error-regexp-alist-alist)))

(add-to-list 'compilation-error-regexp-alist 'mercurial-test-output-tb)
(add-to-list 'compilation-error-regexp-alist 'mercurial-check-code-output)

;; to debug:
;;(setq compilation-error-regexp-alist '(mercurial-check-code-output))