From: Benjamin Rutt <rutt.4+news@osu.edu>
Subject: Re: compiling in C mode and the compilation buffer
Date: Wed, 28 Jul 2004 17:41:18 -0400 [thread overview]
Message-ID: <87acxjbyip.fsf@osu.edu> (raw)
In-Reply-To: 20040728212909.5bdfbad2@localhost
Shug Boabie <no.spam@example.com> writes:
> if this function were made more advanced... like parsing the whole output,
> it would allow warning detection AND also auto jump-to the first line of
> warnings/errors that the compile command produces. but thats an exercise
> for the more confident elisp user :-)
I can't help with the warning detection, but at least the following
version will teleport you to the error line (I personally hated this
when I had it this way though):
(defun my-compilation-finish-function-standard (buf str)
;; avoid doing this for buffers created from M-x grep
(when (string-match "*compilation.*" (buffer-name buf))
(if (string-match "exited abnormally" str)
;;there were errors
(progn
(message "compilation errors, press C-x ` to visit")
(next-error 1))
;;no errors, make the compilation window go away
(run-at-time 0.5 nil 'delete-windows-on buf)
(message "NO COMPILATION ERRORS!"))))
--
Benjamin Rutt
next prev parent reply other threads:[~2004-07-28 21:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-24 22:35 compiling in C mode and the compilation buffer Shug Boabie
2004-07-25 22:52 ` Benjamin Rutt
2004-07-28 1:24 ` Shug Boabie
2004-07-28 1:40 ` Shug Boabie
2004-07-28 12:57 ` Benjamin Rutt
2004-07-28 20:29 ` Shug Boabie
2004-07-28 21:41 ` Benjamin Rutt [this message]
2004-07-26 22:59 ` Kevin Rodgers
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=87acxjbyip.fsf@osu.edu \
--to=rutt.4+news@osu.edu \
/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.