From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: auto-refresh TAGS file on ChangeLog mod? Date: Mon, 25 Aug 2008 09:44:02 -0600 Message-ID: References: <86iqtyxuqc.fsf@lifelogs.com> <86tzde8oc6.fsf@lifelogs.com> <86wsi9t6d0.fsf@lifelogs.com> <86d4jxqhkf.fsf@lifelogs.com> Reply-To: Tom Tromey NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219679141 10023 80.91.229.12 (25 Aug 2008 15:45:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2008 15:45:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 25 17:46:31 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KXeGz-0008Cv-Ap for ged-emacs-devel@m.gmane.org; Mon, 25 Aug 2008 17:46:29 +0200 Original-Received: from localhost ([127.0.0.1]:36271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXeG0-0006KF-Sd for ged-emacs-devel@m.gmane.org; Mon, 25 Aug 2008 11:45:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KXeFw-0006JU-Az for emacs-devel@gnu.org; Mon, 25 Aug 2008 11:45:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KXeFu-0006J5-Sn for emacs-devel@gnu.org; Mon, 25 Aug 2008 11:45:24 -0400 Original-Received: from [199.232.76.173] (port=38005 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXeFu-0006Iz-Oy for emacs-devel@gnu.org; Mon, 25 Aug 2008 11:45:22 -0400 Original-Received: from mx2.redhat.com ([66.187.237.31]:33576) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KXeFu-0006Rc-Hi for emacs-devel@gnu.org; Mon, 25 Aug 2008 11:45:22 -0400 Original-Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id m7PFiAm8004765; Mon, 25 Aug 2008 11:44:30 -0400 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m7PFhwir015547; Mon, 25 Aug 2008 11:43:59 -0400 Original-Received: from opsy.redhat.com (vpn-10-67.bos.redhat.com [10.16.10.67]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id m7PFhqg4006594; Mon, 25 Aug 2008 11:43:53 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id DB5A9508204; Mon, 25 Aug 2008 09:44:02 -0600 (MDT) X-Attribution: Tom In-Reply-To: <86d4jxqhkf.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon\, 25 Aug 2008 09\:45\:36 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102950 Archived-At: >>>>> "Ted" == Ted Zlatanov writes: Ted> It's probably easier to just have a Makefile that will track Ted> those dependencies automatically. Actually, what I think may be Ted> appropriate is just a way to say "make tags" before running Ted> `find-tag'. All the extra intelligence is just duplicating what Ted> the user already has in the Makefile, and what Make provides. Ted> WDYT? The reason I did not do this is that I basically only work with non-srcdir builds. So, I would need to write code to tell Emacs how to find the proper build directory from the source directory (which for me is usually guessable -- though on occasion I work with multiple builds from a given source). Given that I wanted a "no fuss" setup, I ruled this out. The "work only from the source tree" approach does have one disadvantage, which is that generated source files are not tagged. In practice I didn't mind sacrificing this -- I rarely need to look at those files anyhow, and instead I tend to set up etags to tag the original sources to the extent possible. Finally, running make can do a lot more than just rebuild the TAGS file. It might re-run configure, rebuild all the Makefiles, etc. Tom