Hello,
I am using Ant (from the Apache project) to build my
code. Since Ant produces unknown error text I tried
to add the regexp to the
'compilation-error-regexp-alist'
variable.
I added the following lines to my .emacs:
;;
---------------------------------------------------------------------------
;; Add error handling for ANT error messaqes
;;
---------------------------------------------------------------------------
(add-hook 'compilation-mode-hook
(lambda ()
(add-to-list 'compilation-error-regexp-alist
'("\\[[a-z]+\\] \\([^: \t]+\\):\\([0-9]+\\):" 1 2)
)))
But it does not work, ie. there is no error message
but
it doesn't do anything.
I know that I can use ant with the -emacs flag for
Emacs
error messages, but I would like to have the default
Ant error messages.
Thanks in advance,
Ralph