all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* compilation-error-regexp-alist syntax problems
@ 2004-02-02 16:28 Roy Smith
  2004-02-02 17:02 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Roy Smith @ 2004-02-02 16:28 UTC (permalink / raw)


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?

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-02-06 22:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-02 16:28 compilation-error-regexp-alist syntax problems Roy Smith
2004-02-02 17:02 ` Stefan Monnier
2004-02-02 21:38   ` Roy Smith
2004-02-03 16:07     ` Stefan Monnier
2004-02-03 17:07       ` Roy Smith
2004-02-03 17:54         ` Stefan Monnier
2004-02-03 19:00           ` Roy Smith
2004-02-03 19:05           ` Kevin Rodgers
2004-02-03 19:31             ` Stefan Monnier
2004-02-03 22:30               ` Kevin Rodgers
2004-02-04 14:50                 ` Stefan Monnier
2004-02-05 19:40                   ` Kevin Rodgers
2004-02-05 19:48                     ` Stefan Monnier
2004-02-05  8:45 ` Kai Grossjohann
2004-02-05 13:53   ` Roy Smith
2004-02-06 22:03 ` Daniel Pfeiffer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.