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: Fri, 22 Aug 2008 10:11:59 -0600 Message-ID: References: <86iqtyxuqc.fsf@lifelogs.com> <86tzde8oc6.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 1219421620 15985 80.91.229.12 (22 Aug 2008 16:13:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2008 16:13:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: "David House" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 22 18:14:33 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 1KWZHO-00028s-BG for ged-emacs-devel@m.gmane.org; Fri, 22 Aug 2008 18:14:26 +0200 Original-Received: from localhost ([127.0.0.1]:49185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWZGQ-0007VE-LI for ged-emacs-devel@m.gmane.org; Fri, 22 Aug 2008 12:13:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWZGM-0007Tc-SU for emacs-devel@gnu.org; Fri, 22 Aug 2008 12:13:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWZGL-0007Rm-BU for emacs-devel@gnu.org; Fri, 22 Aug 2008 12:13:22 -0400 Original-Received: from [199.232.76.173] (port=59763 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWZGL-0007Rh-8Y for emacs-devel@gnu.org; Fri, 22 Aug 2008 12:13:21 -0400 Original-Received: from mx2.redhat.com ([66.187.237.31]:54314) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWZGK-0002s8-Sj for emacs-devel@gnu.org; Fri, 22 Aug 2008 12:13:21 -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 m7MGC7dL008300; Fri, 22 Aug 2008 12:12:38 -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 m7MGBuN9032190; Fri, 22 Aug 2008 12:11:56 -0400 Original-Received: from opsy.redhat.com (vpn-10-112.bos.redhat.com [10.16.10.112]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id m7MGBoxm027997; Fri, 22 Aug 2008 12:11:50 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id 25F5837828E; Fri, 22 Aug 2008 10:11:59 -0600 (MDT) X-Attribution: Tom In-Reply-To: (David House's message of "Fri\, 22 Aug 2008 16\:50\:01 +0100") 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:102832 Archived-At: David> I don't see why my method would lead to more customisation. The reason I chose the approach I did is that I thought it would be convenient, in the long run, to have all source trees use the same approach. My thinking was a "make" based approach or the like means teaching Emacs about the differences each time. Also, you have to consider non-srcdir builds. In this setup (which is basically the only one I use daily, typical for GNU toolchain work), Emacs doesn't know where to run make. Instead, somebody has to tell it. Finally, in my view this was related to making Emacs more "eclipsey" -- with eclipse you can check out a source tree and be ready to go. I thought it would be fun to do something like have Emacs notice that I opened a file in a tree with a .retags file, then fire up retags and open the TAGS file (in some new tree-local mode). David> At the moment, etags cannot replace the entries in TAGS for a David> given file. I suggest adding this, so that we can call etags David> --replace index.php, which will extract tags from index.php, David> and then replace index.php's entry in TAGS with the tags found. I have a patch for this if you want it. It makes -u work for the TAGS case. Tom