emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Location-aware tags?


From: Chris Van Dusen
Subject: Re: Location-aware tags?
Date: Tue, 10 Apr 2012 21:17:24 -0500

On Apr 9, 2012, at 2:01 PM, Lars Magne Ingebrigtsen wrote:

> Lars Magne Ingebrigtsen <address@hidden> writes:
> 
>> 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.
> 
> Even more super-magical would be if Emacs auto-generated the TAGS file,
> if none could be found.  That is, if you `M-.' in a directory, and no
> TAGS file can be found upwards, then it prompts you for where to
> generate the file "from", generate it to /tmp/tmpTAGS, switch to it, and
> delete the file.
> 
> That way Emacs would magically allow you to easily browse whatever
> source tree you're inspecting without you having to have any particular
> knowledge of the nitty-gritty going on behind the curtain.
> 
> (etags would be called with "find dir -type f | etags --output=/tmp/foo -"
> or something, I guess.)
> 

gtags.el included in GNU Global provides some (if not most) of this 
functionality.

Chris.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]