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

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

compile.el compilation-error-regexp-alist customization


From: Raj Manandhar
Subject: compile.el compilation-error-regexp-alist customization
Date: Tue, 2 Oct 2001 13:22:00 -0500 (CDT)

Hi,

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))

(I use this to recognize the Irix MIPSPro 7.3 C++ compiler error
messages. It would be nice to add to the standard value of the
variable. A typical line looks like: "cc-1174 CC: WARNING File =
foo.cc, Line = 31".) This goes against the hook function idiom,
though. Also, another workaround is to do a compilation, kill the
compilation buffer, and compile again.

Raj



reply via email to

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