[Top][All Lists]

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

Re: How to edit compilation-error-regexp-alist in .emacs file?

From: Kai Großjohann
Subject: Re: How to edit compilation-error-regexp-alist in .emacs file?
Date: Fri, 27 Sep 2002 13:47:30 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

"Siegfried Heintze" <address@hidden> writes:

> Well the setcdr and setcar are kinda ugly but they work. I agree, it would
> be more readable to just push new values on. I'll change that in the future.


> Anyway, to recognize the error messages produced by the apache xerces-j I
> have to open my .emacs file, double click on the progn statement (shown in
> the fragment of code I initially posted in this thread), paste it into the
> alt-shift-: minibuffer and execute it. Then I can use c-x` to jump to the
> errors. Can I automate this process of altering the variable
> compilation-error-regexp-alist?


> I saw the code in the perl module so I just pasted it into my .emacs and it
> is not producing any error messages but it is not working either. My code in
> the progn statement seems to work as long as it is not executed directly in
> my .emacs file (which apparently tries to execute before the
> compilation-error-regexp-alist variable has been created).


> I don't want to use the require statement because that would require
> compile-mode be loaded at that time and I would like to defer that,
> especially if I never use it.

Well, if you have the choice of making Emacs startup slower by 0.5
secs or of having something that does not work, what do you want to
choose :-)

> If I try to execute in my .emacs file, it complains that there is no such
> variable compilation-error-regexp-alist.

When compilation-error-regexp-alist is defined, look which file it
comes from, with C-h v.  I think it's compile, not mode-compile.
Then specify the right filename in eval-after-load.

~/.signature is: umop ap!sdn    (Frank Nobis)

reply via email to

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