all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: help-gnu-emacs mailing list <help-gnu-emacs@gnu.org>
Subject: synchronous M-x compile?
Date: Wed, 24 Sep 2008 14:21:00 -0400	[thread overview]
Message-ID: <20080924182100.GA11651@stats.ox.ac.uk> (raw)

M-x compile runs the compile process asynchronously, and e.g.
(compile "make -k") always evaluates as true, even if there are
compilation errors. Is there a simple way to alter this behaviour so
that compile happens synchronously, and evaluates as false if there
are errors? I realise that one approach could be based on something
like (shell-command "make"), but ideally I'd like not to lose all the
other functionality in compile.el.

As an aside, I guess that the motivation for asynchronous compile is
the time taken for compilation? This has obviously decreased a lot
during the life of emacs and I wonder what the distribution of compile
times looks like now for emacs users? I only work on simple, small
projects for which compilation takes a few seconds, and so I'm happy
to not start another task during that time. But perhaps I have no idea
how long compilation takes for those working on large projects?

Dan

-- 
http://www.stats.ox.ac.uk/~davison




             reply	other threads:[~2008-09-24 18:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24 18:21 Dan Davison [this message]
2008-09-25 11:14 ` synchronous M-x compile? Nikolaj Schumacher
     [not found] <mailman.19845.1222280468.18990.help-gnu-emacs@gnu.org>
2008-09-24 20:06 ` Chetan
2008-09-25 10:23   ` Lennart Borgman (gmail)

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=20080924182100.GA11651@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=help-gnu-emacs@gnu.org \
    /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.