help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autoconf autotest compilation-error-regexp


From: Nikolai Weibull
Subject: Re: Autoconf autotest compilation-error-regexp
Date: Sun, 18 Nov 2012 19:36:59 +0100

On Sun, Nov 18, 2012 at 1:06 PM, Nikolai Weibull <now@bitwi.se> wrote:

> Has anyone written any autoconf autotest compilation-error-regexps?  I
> can’t seem to get it to work.

I managed to get some time to put something together that works OK:

     (add-to-list 'compilation-error-regexp-alist-alist
                  '(autotest-header
                    "^\\([1-9][0-9]*\\. \\([^\n
:]+\\.at\\):\\([1-9][0-9]*\\)\\): \\(?:
FAILED\\|WARNIN\\(G\\)\\|\\(testing\\| ok\\)\\)"
                    2 3 nil (4 . 5) 1))
     (add-to-list 'compilation-error-regexp-alist 'autotest-header)
     (add-to-list 'compilation-error-regexp-alist-alist
                  '(autotest-check-error
                    "^\\(\\([^\n :]+\\.at\\):\\([1-9][0-9]*\\)\\):
[^\n]+\n\\(?:\\([^-]\\)\\|--- \\)"
                    2 3 nil (nil . 4) 1))
     (add-to-list 'compilation-error-regexp-alist 'autotest-check-error)

I’m sure it can be improved, but this currently seems to work fine for my needs.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]