From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "rgb" Newsgroups: gmane.emacs.help Subject: Re: interaction with "internal" emacs processes. Date: 7 Oct 2005 10:06:56 -0700 Organization: http://groups.google.com Message-ID: <1128704816.772572.290360@f14g2000cwb.googlegroups.com> References: <4345465ee37b0@wp.pl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1128705188 28556 80.91.229.2 (7 Oct 2005 17:13:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2005 17:13:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 19:12:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENvl0-0002Fu-QW for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 19:11:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENvl0-0003II-50 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Oct 2005 13:11:42 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!newsread.com!news-xfer.newsread.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 198.74.20.78 Original-X-Trace: posting.google.com 1128704822 8208 127.0.0.1 (7 Oct 2005 17:07:02 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 7 Oct 2005 17:07:02 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=198.74.20.78; posting-account=C7LM4w0AAAD23IRuMuUUJVCLQTuHhTK8 Original-Xref: shelby.stanford.edu gnu.emacs.help:134464 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30041 Archived-At: > > (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. > > ) > > > defadvice.el is exactly for situations where Emacs doesn't provide a > hook: > > (defadvice cvs-checkout (after message activate) > "Display a message when finished." > (message "cvs-checkout finished")) > I'm totally lost on this line of thought. How is it possible that any function f-b could execute before f-a completes. (f-a) (f-b) Your statement implies that the advice on f-a (i.e. f-c) somehow won't execute until after f-b completes. (defadvise foo (after f-b) (f-c)) (f-a) (f-b) Otherwise what's the point of needing advise? You could just put the functionality of f-c in f-b (which is what the OP said didn't work).