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

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

Re: compile.el compilation-error-regexp-alist customization


From: Ehud Karni
Subject: Re: compile.el compilation-error-regexp-alist customization
Date: Tue, 2 Oct 2001 21:21:05 +0200

On Tue, 2 Oct 2001 13:22:00 -0500 (CDT), Raj Manandhar <address@hidden> wrote:
> 
> In emacs 20.7, there is no easy way to change the above variable. If
> you add it to compilation-mode-hook in .emacs, then bring up emacs and
> type M-x compile RET RET, it gets ignored. This is because
> compile-internal in compile.el copies the value out of this variable,
> and THEN runs compilation-mode.
> 
> The solution I found was:
> 
> (load-library "compile")
> (setq compilation-error-regexp-alist 
>       (cons '("cc-[0-9]+ cc: \\(error\\|warning\\) File = \\(.+\\), Line = 
> \\([0-9]+\\)"
>             2 3) 
>           compilation-error-regexp-alist))

You can use the `eval-after-load' function like this:
(eval-after-load "compile"
    '(setq compilation-error-regexp-alist 
           (cons '("cc-[0-9]+ cc: \\(error\\|warning\\) File = \\(.+\\), Line = 
\\([0-9]+\\)"
                 2 3) 
                 compilation-error-regexp-alist)))

Ehud.


-- 
 Ehud Karni     Mivtach - Simon  Insurance   /"\
 Tel: +972-3-7966-561 Fax: +972-3-7966-667   \ /  ASCII Ribbon Campaign
 (USA) Fax and  voice  mail: 1-815-5509341    X   Against  HTML  Mail
     Better     Safe     Than     Sorry      / \
     mailto:address@hidden    http://www.simonwiesel.co.il



reply via email to

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