all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Location-aware tags?
@ 2012-04-09 16:53 Lars Magne Ingebrigtsen
  2012-04-09 19:01 ` Lars Magne Ingebrigtsen
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2012-04-09 16:53 UTC (permalink / raw)
  To: emacs-devel

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.

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.

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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-16  2:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-09 16:53 Location-aware tags? Lars Magne Ingebrigtsen
2012-04-09 19:01 ` Lars Magne Ingebrigtsen
2012-04-11  2:17   ` Chris Van Dusen
2012-04-16  2:07     ` Jonathan Rockway
2012-04-09 19:46 ` Tom Tromey
2012-04-10  5:49 ` Stefan Reichör

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.