unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: build-and-load-etags
Date: Sat, 28 Apr 2007 11:03:11 +0300	[thread overview]
Message-ID: <u3b2lylhc.fsf@gnu.org> (raw)
In-Reply-To: <BAY144-F32B50E9C0874F9B21420BF844F0@phx.gbl> (idht4n@hotmail.com)

> From: "David L" <idht4n@hotmail.com>
> Bcc: 
> Date: Fri, 27 Apr 2007 12:41:47 -0700
> 
> One more question.  If I wanted the benefit of asynchronous
> generation of the tags file (ie, not having to wait 30 seconds
> for a big list of dependencies to be created before my emacs
> session is active again)

But then you will not be able to use tags commands until etags
finishes.  Since you want build-and-load-etags, this kinda doesn't
make sense, does it?

> is there a way to query the completion
> status of a compile session so I could start a timer and
> poll every few seconds for compilation completion?

You don't need to reinvent the wheel like that, since Emacs already
has the machinery to check the status of an async process.  A special
sentinel function is called when the process changes state, and
there's a hook variable `compilation-finish-functions' that you can
use to get your function called when the process exits.

Btw, the ELisp manual describes all this in quite some detail.  I
suggest to read the relevant parts of it when you are writing Lisp
programs.

      parent reply	other threads:[~2007-04-28  8:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-26 20:39 build-and-load-etags David L
2007-04-26 20:42 ` build-and-load-etags Eli Zaretskii
2007-04-26 21:06   ` build-and-load-etags David L
2007-04-27  8:16     ` build-and-load-etags Eli Zaretskii
2007-04-27 19:41       ` build-and-load-etags David L
2007-04-28  2:21         ` build-and-load-etags Tom Tromey
2007-04-28  8:03         ` Eli Zaretskii [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=u3b2lylhc.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.
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).