From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "David House" Newsgroups: gmane.emacs.devel Subject: Re: auto-refresh TAGS file on ChangeLog mod? Date: Fri, 22 Aug 2008 17:26:13 +0100 Message-ID: References: <86iqtyxuqc.fsf@lifelogs.com> <86tzde8oc6.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219422392 18879 80.91.229.12 (22 Aug 2008 16:26:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2008 16:26:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Tom Tromey" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 22 18:27:25 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 1KWZTs-0007Hl-II for ged-emacs-devel@m.gmane.org; Fri, 22 Aug 2008 18:27:20 +0200 Original-Received: from localhost ([127.0.0.1]:60021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWZSu-0007up-P4 for ged-emacs-devel@m.gmane.org; Fri, 22 Aug 2008 12:26:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWZSp-0007sT-BR for emacs-devel@gnu.org; Fri, 22 Aug 2008 12:26:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWZSo-0007rK-M4 for emacs-devel@gnu.org; Fri, 22 Aug 2008 12:26:14 -0400 Original-Received: from [199.232.76.173] (port=44671 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWZSo-0007qu-CS for emacs-devel@gnu.org; Fri, 22 Aug 2008 12:26:14 -0400 Original-Received: from mail-gx0-f12.google.com ([209.85.217.12]:46039) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWZSn-000513-TN for emacs-devel@gnu.org; Fri, 22 Aug 2008 12:26:14 -0400 Original-Received: by gxk5 with SMTP id 5so1179051gxk.18 for ; Fri, 22 Aug 2008 09:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=wilXGJVRP6Nabx0M6uYDYRn2A0RYTn2baxSCAG80Y7c=; b=tj0wLE0+aZ8g2+uVyfdsqw0d7IMgqXZooF7Dm7tF4Hlf5CFN61o7mE7EBm1y8MywPJ PEE0YjEk1x7FAk6clHsvNOXPyqn7phMgmJcCqzOtNKjwfX16TslPCxcHHgayVu3ZzvDM UUHD6HzVxRc1D3X4xfgdAl2jW/WKyiPMgvmzI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=HsSWnywbAW+IxDEfdhyc2g4sZwS/SaICP7Hxo2n9nC9hYcAE52Fwe5OFKjRqhYXpuM i6tgAn4Ho1i0io4YpqQpKpSAzYl/q1qF128KqLdYGOejgQyAZB6DO2X5XW/KBGCsyYd5 NfZcvlPYJv9pcPjrvOW2hz0ZgmZdNV4rIsgUk= Original-Received: by 10.151.27.15 with SMTP id e15mr2128634ybj.33.1219422373230; Fri, 22 Aug 2008 09:26:13 -0700 (PDT) Original-Received: by 10.150.192.3 with HTTP; Fri, 22 Aug 2008 09:26:13 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:102833 Archived-At: 2008/8/22 Tom Tromey : > 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). My idea was not intended to replace yours. It was instead an optimisation that would speed up running (r)etags every time we noticed a file change. Otherwise I think a multi-second delay every time you save a file is prohibitive. > 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. This was all I was suggesting, so we seem to agree. -- -David