all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stefan Reichör" <stefan@xsteve.at>
To: emacs-devel@gnu.org
Subject: Re: Location-aware tags?
Date: Tue, 10 Apr 2012 07:49:09 +0200	[thread overview]
Message-ID: <m0hawsi1be.fsf@ge-research.com> (raw)
In-Reply-To: m362d84zj4.fsf@stories.gnus.org

Lars Magne Ingebrigtsen <larsi@gnus.org> 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.




      parent reply	other threads:[~2012-04-10  5:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m0hawsi1be.fsf@ge-research.com \
    --to=stefan@xsteve.at \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.