[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compilation-error-regexp-alist syntax problems
From: |
Roy Smith |
Subject: |
compilation-error-regexp-alist syntax problems |
Date: |
Mon, 02 Feb 2004 11:28:52 -0500 |
User-agent: |
MT-NewsWatcher/3.3b1 (PPC Mac OS X) |
I'm running ant as my M-X compile command, and trying to get next-error
to parse the output correctly. The line I want to parse looks like:
[javac] fileName:lineNumber: message
An example being:
[javac]
/Users/roy/Muse/sandbox.tip/src/SnmpBugDb/data/scripts/test/DataBaseTestCase.java:20:
unreport\
ed exception java.io.IOException; must be caught or declared to be thrown
I've tried putting this in my .emacs file:
(add-hook 'compilation-mode-hook 'my-compilation-mode-hook t)
(defun my-compilation-mode-hook ()
(setq compilation-error-regexp-alist
(cons '("\\[javac\\] *\(/[^:]+\):\([^:]*\):" 1 2)
compilation-error-regexp-alist)
))
but the regex doesn't match the line. At this point, I think the problem is
that I can't figure out how many \'s I need to get the \( and \) to come
out properly in the final alist.
Can somebody set me straight?
- compilation-error-regexp-alist syntax problems,
Roy Smith <=
- Re: compilation-error-regexp-alist syntax problems, Stefan Monnier, 2004/02/02
- Re: compilation-error-regexp-alist syntax problems, Roy Smith, 2004/02/02
- Re: compilation-error-regexp-alist syntax problems, Stefan Monnier, 2004/02/03
- Re: compilation-error-regexp-alist syntax problems, Roy Smith, 2004/02/03
- Re: compilation-error-regexp-alist syntax problems, Stefan Monnier, 2004/02/03
- Re: compilation-error-regexp-alist syntax problems, Roy Smith, 2004/02/03
- Re: compilation-error-regexp-alist syntax problems, Kevin Rodgers, 2004/02/03
- Re: compilation-error-regexp-alist syntax problems, Stefan Monnier, 2004/02/03
- Re: compilation-error-regexp-alist syntax problems, Kevin Rodgers, 2004/02/03
- Re: compilation-error-regexp-alist syntax problems, Stefan Monnier, 2004/02/04