From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "David L" Newsgroups: gmane.emacs.help Subject: build-and-load-etags Date: Thu, 26 Apr 2007 13:39:14 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1177619982 355 80.91.229.12 (26 Apr 2007 20:39:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2007 20:39:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 26 22:39:40 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HhAkc-0002Jq-4m for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Apr 2007 22:39:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhAqN-0006Xp-NS for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Apr 2007 16:45:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HhAqB-0006Xk-6Q for help-gnu-emacs@gnu.org; Thu, 26 Apr 2007 16:45:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HhAq9-0006XW-O3 for help-gnu-emacs@gnu.org; Thu, 26 Apr 2007 16:45:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhAq9-0006XT-I7 for help-gnu-emacs@gnu.org; Thu, 26 Apr 2007 16:45:21 -0400 Original-Received: from bay0-omc3-s20.bay0.hotmail.com ([65.54.246.220]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HhAkN-0000Pm-2O for help-gnu-emacs@gnu.org; Thu, 26 Apr 2007 16:39:23 -0400 Original-Received: from hotmail.com ([65.55.155.89]) by bay0-omc3-s20.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 26 Apr 2007 13:39:19 -0700 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 26 Apr 2007 13:39:19 -0700 Original-Received: from 65.55.155.123 by by144fd.bay144.hotmail.msn.com with HTTP; Thu, 26 Apr 2007 20:39:14 GMT X-Originating-IP: [24.6.174.244] X-Originating-Email: [idht4n@hotmail.com] X-Sender: idht4n@hotmail.com X-OriginalArrivalTime: 26 Apr 2007 20:39:19.0083 (UTC) FILETIME=[F6A8DFB0:01C78842] X-detected-kernel: Windows 2000 SP4, XP SP1+ 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:43237 Archived-At: I'm trying to write a function that will generate etags and then load them, but I'm not sure how to make the function wait for the etags building step to complete before trying to load the etags. I have an etags make target and I using emacs compile to build the etags. But it tries to load the tags file before it finishes building. Thanks... David PS - I tried something like this: (defun build-and-load-tags () (build-etags) (visit-tags-table tags-file-name) (find-tag "main") ) (defun build-etags () (interactive) (compile "make etags") ) _________________________________________________________________ Get a FREE Web site, company branded e-mail and more from Microsoft Office Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/