all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nikolaj Schumacher <me@nschum.de>
To: help-gnu-emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: synchronous M-x compile?
Date: Thu, 25 Sep 2008 13:14:08 +0200	[thread overview]
Message-ID: <m2od2c32bj.fsf@nschum.de> (raw)
In-Reply-To: <20080924182100.GA11651@stats.ox.ac.uk> (Dan Davison's message of "Wed\, 24 Sep 2008 14\:21\:00 -0400")

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

> Is there a simple way to alter this behaviour so that compile happens
> synchronously

Are you sure you need to make it synchronous?  You could just add the
code that uses the result to `compilation-finish-functions'.

> 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?

Software is getting slower more rapidly than hardware becomes faster.
(Wirth's Law) :)

But seriously.  Of course compilations have become faster.  Some
environments even offer real-time compilation while typing code.  But
even if it did only take a few seconds, what advantage would locking the
entire user interface have?  Asynchronous processes come at a small
price.

On the bright side, you can jump to the first error as soon as it
appears while the compiler is munching away on other files.

Since your interested, the average incremental compile time on my
current one-man project is about 30s, on a fairly new laptop.


regards,
Nikolaj Schumacher




  reply	other threads:[~2008-09-25 11:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24 18:21 synchronous M-x compile? Dan Davison
2008-09-25 11:14 ` Nikolaj Schumacher [this message]
     [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=m2od2c32bj.fsf@nschum.de \
    --to=me@nschum.de \
    --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.