unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: interaction with "internal" emacs processes.
Date: Mon, 10 Oct 2005 23:56:19 -0400	[thread overview]
Message-ID: <87r7aslniq.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.10118.1128621534.20277.help-gnu-emacs@gnu.org

>> Example:
>> (defun my-cvs-checkout-example ()
>> ""
>> (call-interactively 'cvs-checkout)
>> (message "checking out cvs repository finished") ;;. I want it be run as
>    cvs-checkout is finished and here it is not.
>> )
>> 
>> I expect that sometimes there is a special hook that is run after
>> something is finished, but sometimes there is no such hook ( like here
>> for example ). I also did not find any `wait' elisp function that
>> would wait for other function to be finished.

PCL-CVS runs the command asynchronously, so upon completion of the
underlying cvs process, Emacs runs the process's sentinel function (which
in PCL-CVS parses the process's output to update the *cvs* buffer).

I'm not sure what you want to do exactly, but maybe you want to implement
your own cvs-checkout which does something extra after the checkout is
finished, in which case you should probably reimplement the function, using
cvs-mode-run (which takes a :postproc argument where you can specify code to
be executed after the command terminates).


        Stefan

  parent reply	other threads:[~2005-10-11  3:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-06 15:44 interaction with "internal" emacs processes mak kwak
2005-10-06 16:25 ` Friedrich Laher
2005-10-06 17:56 ` Kevin Rodgers
     [not found] ` <mailman.10118.1128621534.20277.help-gnu-emacs@gnu.org>
2005-10-07 17:06   ` rgb
2005-10-11 15:02     ` Thien-Thi Nguyen
2005-10-11  3:56   ` Stefan Monnier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-10-07 14:19 mak kwak

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=87r7aslniq.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /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).