Mercurial > dotfiles
annotate .elisp/settings/50.compilation-tweaks.el @ 474:e71b87fa8ea1
hg: enable absorb
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 28 Dec 2018 11:54:30 -0500 |
parents | b0264224e2ec |
children | 6bcdbe7b8e42 |
rev | line source |
---|---|
212
4716b238db2e
emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
1 (require 'compile) |
4716b238db2e
emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
2 |
445
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
3 (setq af--hg-test-traceback |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
4 (rx |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
5 bol |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
6 "+ File \"" |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
7 (one-or-more not-newline) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
8 "/install/lib/python/" |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
9 (group (one-or-more (not (any "\"")))) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
10 ", line " |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
11 (group (one-or-more digit)) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
12 ) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
13 ) |
212
4716b238db2e
emacs: add compilation-mode regexp for hg test tracebacks
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
14 |
445
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
15 (setq compilation-error-regexp-alist-alist |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
16 (cons '(mercurial-test-output-tb af--hg-test-traceback 1 2) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
17 (assq-delete-all 'mercurial-test-output-tb |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
18 compilation-error-regexp-alist-alist))) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
19 |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
20 (setq af--hg-check-code-error-re |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
21 (rx |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
22 bol |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
23 "+ " |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
24 (group (one-or-more not-newline)) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
25 ":" |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
26 (group (one-or-more digit)) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
27 ":" |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
28 ) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
29 ) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
30 |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
31 (setq compilation-error-regexp-alist-alist |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
32 (cons '(mercurial-check-code-output af--hg-check-code-error-re 1 2) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
33 (assq-delete-all 'mercurial-check-code-output |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
34 compilation-error-regexp-alist-alist))) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
35 |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
36 (add-to-list 'compilation-error-regexp-alist 'mercurial-test-output-tb) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
37 (add-to-list 'compilation-error-regexp-alist 'mercurial-check-code-output) |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
38 |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
39 ;; to debug: |
b0264224e2ec
compilation tweaks: tried and failed to fix hg compilation stuff
Augie Fackler <raf@durin42.com>
parents:
242
diff
changeset
|
40 ;;(setq compilation-error-regexp-alist '(mercurial-check-code-output)) |