unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* behavior of `compilation-error-regexp-alist'
@ 2005-06-11 14:15 Denis Bueno
  2005-06-15 16:08 ` Denis Bueno
  0 siblings, 1 reply; 2+ messages in thread
From: Denis Bueno @ 2005-06-11 14:15 UTC (permalink / raw)


All,

I've been trying to get Emacs to compile a C project using `compile'
and comint-mode, so that I can check the errors in the output of
`make'. The problem is that C-x ` doesn't display the next error, it
prints "Moved past last error" in the minibuffer and nothing in the
*compilation* buffer[1] is highlghted, even though there definitely
are errors.

I'm using gcc 4.0 (Apple) on 10.4.1. What puzzles me is that the
regexp in `compilation-error-regexp-alist-alist' for "gnu" matches an
error line in my make output:

  (string-match "^\\(?:[[:alpha:]][-[:alnum:].]+:
?\\)?\\([/.]*[a-zA-Z]:?[^ 	\n:]*\\|{standard input}\\):
?\\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\\(?:-\\(?:\\([0-9]+\\)\\3\\)?\\.?\\([0-9]+\\)?\\)?:\\(?:
*\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|
*\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\)\\)?" "server.c:76: error:
'aoeu' undeclared (first use in this function)")
 => 0

as I think it should, and yet I'm seeing my symptoms. It must be that
the gnu regexp isn't being applied for some reason.

How should I proceed in debugging this? Do I need extra .emacs configuration?

Thanks in advance.

-Denis

[1]
The contents of the compilation buffer I'm referring to:

-*- mode: compilation; default-directory:
"~/cvswork/edu/cs4210/project/src/" -*-
make -k 
gcc -DOBFUSCATED_DEBUG -g -Wall -std=c99 -pedantic -o server.o -c server.c
server.c: In function 'server_loop':
server.c:76: error: 'aoeu' undeclared (first use in this function)
server.c:76: error: (Each undeclared identifier is reported only once
server.c:76: error: for each function it appears in.)
make: *** [server.o] Error 1
make: Target `all' not remade because of errors.

Comint exited abnormally with code 2 at Sat Jun 11 10:11:46

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-15 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-11 14:15 behavior of `compilation-error-regexp-alist' Denis Bueno
2005-06-15 16:08 ` Denis Bueno

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).