all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chetan <Chetan.xspam@xspam.sbcglobal.net>
To: help-gnu-emacs@gnu.org
Subject: Re: synchronous M-x compile?
Date: Wed, 24 Sep 2008 13:06:48 -0700	[thread overview]
Message-ID: <u7i91ux47.fsf@myhost.sbcglobal.net> (raw)
In-Reply-To: mailman.19845.1222280468.18990.help-gnu-emacs@gnu.org

Dan Davison <davison@stats.ox.ac.uk> writes:

> 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
As a quick and dirty solution, doesn't M-x compile followed by
shell-command work? 

Chetan


       reply	other threads:[~2008-09-24 20:06 UTC|newest]

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

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=u7i91ux47.fsf@myhost.sbcglobal.net \
    --to=chetan.xspam@xspam.sbcglobal.net \
    --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.