Re: jde-maven.el
Phillip Lord <[email protected]>
| Newsgroups | gmane.emacs.jdee |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "BS" == Bryan Shell <[email protected]> writes: BS> Phillip Lord <[email protected]> writes: >> [SNIP] >> Have you managed to get Emacs to parse the error messages? Maven2 >> appears to parse and then push the error messages back in a >> different format. BS> I just added a another compilation error regexp in my BS> jde-mode-hook to compilation-error-regexp-alist-alist and called BS> compilation-build-compilation-error-regexp-alist like so: BS> (defun my-jde-hook () BS> (add-to-list 'compilation-error-regexp-alist-alist '(mvn BS> ("\\(.*\\):\\[\\([0-9]*\\),\\([0-9]*\\)\\]" 1 2 3))) BS> (compilation-build-compilation-error-regexp-alist)) BS> I'm using xemacs so you might have to tweak it for emacs; but BS> this should get you headed in the right direction. Okay, yes, this does help. There has been some fiddling going on with Emacs compile.el. This works.... (defun phil-jde-hook() (add-to-list 'compilation-error-regexp-alist-alist '(mvn "^\\(.*\\):\\[\\([0-9]*\\),\\([0-9]*\\)\\]" 1 2 3)) (add-to-list 'compilation-error-regexp-alist 'mvn)) Ta, lots! Phil