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

[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: Mon, 23 Sep 2002 15:06:56 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

"Siegfried Heintze" <siegfried@heintze.com> writes:

> I found an example of eval-after-load in the perl module and tried to modify
> it for me.
>
> Why does this not work?

What happens when you use it and what did you expect?  What does C-h
v say about the variable compilation-error-regexp-alist?

Do you really mean mode-compile.el or maybe compile.el?

> (if (fboundp 'eval-after-load)
>     (eval-after-load
>      "mode-compile"
>      '(progn (setcar (car compilation-error-regexp-alist) (concat
> "\\(\\[Error\\] \\|\\[Fatal Error\\] \\)?"  (caar
> compilation-error-regexp-alist)))
>   (setcdr (car compilation-error-regexp-alist) '(3 4 7))
>      (push '("^\\([-_a-zA-Z0-9]+\\.[-_a-zA-Z0-9]+\\)[ \t]*([
> \t]*\\([0-9]+\\)[ \t]*,[ \t]*\\([0-9]+\\)[ \t]*)[ \t]*:[
> \t]*\\(error\\|fatal error\\|warning\\)[ \t]+\\([^ ]+\\):"  1 2 3)
> compilation-error-regexp-alist))  )  )

Why not just add new entries?  Frobbing the first entry seems a bit
strange.

kai
-- 
~/.signature is: umop 3p!sdn    (Frank Nobis)


reply via email to

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