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

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

Re: compilation-error-regexp-alist syntax problems


From: Kevin Rodgers
Subject: Re: compilation-error-regexp-alist syntax problems
Date: Tue, 03 Feb 2004 12:05:31 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Stefan Monnier wrote:

Ah hah!  That's the problem.  It's not in the local version.
Next question, how do I get the local version to include it?


Looking at `compile-internal', it seems you'll have to do
things differently.
The simplest is:

   (require 'compile)
   (add-to-list 'compilation-error-regexp-alist
                '("\\[javac\\] *\\(/[^:]+\\):\\([^:]*\\):" 1 2))

and if you don't want to have to preload compile.el from your .emacs file
(I personally hate it when I have to do that), you'l have to use something
like eval-after-load (a bit untidy) or to setq error-regexp-alist (really
ugly and likely to break in a future version of compile.el).


What's untidy about eval-after-load?  My only complaint is that it's not a
macro, so we have to quote the FORM.


Hmm... there's room for improvement in compile.el.

Could it be as simple as adding ;;;###autoload cookies to the 6 -regexp-alist
`defvar's?

--
Kevin Rodgers



reply via email to

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