From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan =?iso-8859-1?Q?Reich=F6r?= Newsgroups: gmane.emacs.devel Subject: Re: Location-aware tags? Date: Tue, 10 Apr 2012 07:49:09 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334036974 26584 80.91.229.3 (10 Apr 2012 05:49:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Apr 2012 05:49:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 10 07:49:32 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SHTxL-0000RS-S4 for ged-emacs-devel@m.gmane.org; Tue, 10 Apr 2012 07:49:31 +0200 Original-Received: from localhost ([::1]:33209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHTxL-0003VI-5T for ged-emacs-devel@m.gmane.org; Tue, 10 Apr 2012 01:49:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHTxG-0003V1-WC for emacs-devel@gnu.org; Tue, 10 Apr 2012 01:49:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHTxC-0004ot-Qh for emacs-devel@gnu.org; Tue, 10 Apr 2012 01:49:26 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHTxC-0004mP-Jk for emacs-devel@gnu.org; Tue, 10 Apr 2012 01:49:22 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SHTxA-0000Oy-J3 for emacs-devel@gnu.org; Tue, 10 Apr 2012 07:49:20 +0200 Original-Received: from gw.gleichmann.cust.net.lagis.at ([83.164.197.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Apr 2012 07:49:20 +0200 Original-Received: from stefan by gw.gleichmann.cust.net.lagis.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Apr 2012 07:49:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: gw.gleichmann.cust.net.lagis.at User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) Cancel-Lock: sha1:JzKrXfH4qQMQKOccnFnKHYqLy5A= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149551 Archived-At: Lars Magne Ingebrigtsen writes: > It's possible that this functionality exists, and I'm just unaware of > it, but wouldn't it be nice if `M-.' could be location-aware instead of > global? > > That is, if I'm in ~/src/emacs/emacs-24/lisp and I hit `M-.', it would > use the TAGS file in ~/src/emacs/emacs-24. If I'm in > ~/src/emacs/trunk/src, it would use the TAGS file in ~/src/emacs/trunk. > And so on. etags-table provides such a functionality, see: http://emacswiki.org/emacs/EtagsTable > Especially when dealing with branches that have (basically) the same > symbols, just adding more tags files to the search list doesn't help. > You can almost get away with it when you're editing totally separate > projects, but even then you're occasionally popped to the wrong place. > > So I'm proposing to add a new variable `tags-use-auto-tags' or > something, that would make `M-.' always look for the nearest TAGS file > upwards in the directory structure, and then switch to that file before > looking up the symbol. > > Unless somebody has a better idea. Stefan.