From: william.a.george@gmail.com
Subject: Re: Parsing compilation error/warning not possible.
Date: 22 Dec 2006 03:53:26 -0800 [thread overview]
Message-ID: <1166788406.516892.99320@48g2000cwx.googlegroups.com> (raw)
In-Reply-To: <1166640852.521062.79270@i12g2000cwa.googlegroups.com>
Robert Thorpe wrote:
> william.a.george@gmail.com wrote:
> > william.a.george@gmail.com wrote:
> > > Robert Thorpe skrev:
> > >
> > > > william.a.george@gmail.com wrote:
> > > > > Hi.
> > > > > I'm using Emacs on WindowsXP.
> > > > > I make compilations through emacs with an own written Makefile. The
> > > > > compilation result is presented on a new buffer. It should be possible
> > > > > to click on the error or warning message to go directly to the
> > > > > corresponding line in the file where the error is.
> > > > > But I can't make it happen. I have read a little bit about this, and
> > > > > what I could find is something about (compilation-error-regexp-alist)
> > > > > that should fix this in someway.
> > > > > Can anyone tell me how this should be done?
> > > >
> > > > Generally you do M-x compile
> > > > Then enter the command to make the program, eg "make"
> > > > Then you can select the errors one at a time by pressing C-x `
> > > >
> > > > This will only work if your compiler emits messages in a format
> > > > understood by Emacs compile-mode.
> > >
> > > Thanks for your response.
> > > The compilation part is OK. The problem is that it is not possible to
> > > select the errors in any way. Not by C-x or clicking mouse 2 button or
> > > any other way.
> > > The question is if my compiler is emitting messages in a format that is
> > > understood by emacs compile-mode, as you said.
> > > How can I make the compile-mode to understand my compiler messages?
> >
> > Hi again.
> > I wanted to show the syntax for errors and warnings generated by my
> > compiler:
> > terminal.c:
> > 5946: while ( (*buf_p != ':') && (*buf_p != CR) && (*buf_p != '\0')
> > )
> > E 42: syntax error, expecting statement
> > 5997: }
> > W 68: function "GetIntelHex": parameter "stream" not used
> > W 183: variable 'content_p' possibly uninitialized
> > total errors: 1, warnings: 2
> >
> > Maybe this can help in case emacs doesn't understand the compilers
> > generated errors/warnings.
>
> I don't think it does. There is a standard in the GNU coding standards
> for errors, what you've showed me doesn't follow it.
>
> You can though write your own compilation-parse-errors, or more simply
> customize compilation-error-regexp-alist to recognise what you need.
Hi Again.
That is exactly what I wanted to know. How do tailor my own
compilation-parse-errors.
It would be nice if you could give me some hints or examples... I'm a
beginner when it comes to emacs and lisp.
Thanks.
prev parent reply other threads:[~2006-12-22 11:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-19 12:36 Parsing compilation error/warning not possible william.a.george
2006-12-19 19:18 ` Robert Thorpe
2006-12-19 20:38 ` william.a.george
2006-12-20 8:58 ` william.a.george
2006-12-20 18:54 ` Robert Thorpe
2006-12-22 11:53 ` william.a.george [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1166788406.516892.99320@48g2000cwx.googlegroups.com \
--to=william.a.george@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.
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).