emacs-devel
[Top][All Lists]
Advanced

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

Re: Location-aware tags?


From: Lars Magne Ingebrigtsen
Subject: Re: Location-aware tags?
Date: Mon, 09 Apr 2012 21:01:48 +0200
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux)

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.)

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




reply via email to

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