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: Re: build-and-load-etags Date: Thu, 26 Apr 2007 14:06:27 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1177621613 10461 80.91.229.12 (26 Apr 2007 21:06:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2007 21:06:53 +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 23:06:50 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 1HhBAv-0007S9-8P for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Apr 2007 23:06:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhBGg-0000St-E2 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Apr 2007 17:12:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HhBGU-0000Se-J5 for help-gnu-emacs@gnu.org; Thu, 26 Apr 2007 17:12:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HhBGT-0000SJ-4a for help-gnu-emacs@gnu.org; Thu, 26 Apr 2007 17:12:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HhBGS-0000SG-VT for help-gnu-emacs@gnu.org; Thu, 26 Apr 2007 17:12:32 -0400 Original-Received: from bay0-omc3-s12.bay0.hotmail.com ([65.54.246.212]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HhBAf-00048C-OY for help-gnu-emacs@gnu.org; Thu, 26 Apr 2007 17:06:34 -0400 Original-Received: from hotmail.com ([65.55.155.107]) by bay0-omc3-s12.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 26 Apr 2007 14:06:29 -0700 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 26 Apr 2007 14:06:28 -0700 Original-Received: from 65.55.155.123 by by144fd.bay144.hotmail.msn.com with HTTP; Thu, 26 Apr 2007 21:06:27 GMT X-Originating-IP: [24.6.174.244] X-Originating-Email: [idht4n@hotmail.com] X-Sender: idht4n@hotmail.com In-Reply-To: X-OriginalArrivalTime: 26 Apr 2007 21:06:28.0755 (UTC) FILETIME=[C2051630:01C78846] 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:43239 Archived-At: > > > From: "David L" > > Bcc: > > Date: Thu, 26 Apr 2007 13:39:14 -0700 > > > > (defun build-etags () > > (interactive) > > (compile "make etags") > ^^^^^^^ >This is your problem: `compile' runs the command asynchronously, which >is not what you want. Use `shell-command' or some such, and Emacs will >wait. > Thanks for the quick response! Is there a way to get compile to run syncrhonously? Or alternatively to get the "next-error" functionality when using shell-command? The generation of my etags from my makefile uses gcc to generate dependencies that are used as inputs to etags. I'd like to be able to use the "next-error" function when building etags in case I have a typo in a #include or something. So the function will either build and load the etags or bring me to the line with the error that prevented a complete dependency list from being generated. Thanks again... David _________________________________________________________________ MSN is giving away a trip to Vegas to see Elton John.  Enter to win today. http://msnconcertcontest.com?icid-nceltontagline