all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Denis Bueno <dbueno@gmail.com>
Subject: behavior of `compilation-error-regexp-alist'
Date: Sat, 11 Jun 2005 10:15:02 -0400	[thread overview]
Message-ID: <6dbd4d00050611071565d74d83@mail.gmail.com> (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

             reply	other threads:[~2005-06-11 14:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-11 14:15 Denis Bueno [this message]
2005-06-15 16:08 ` behavior of `compilation-error-regexp-alist' Denis Bueno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6dbd4d00050611071565d74d83@mail.gmail.com \
    --to=dbueno@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.