From: Matzi Kratzi <matzikratzi@gmail.com>
To: emacs-devel@gnu.org
Subject: etags
Date: Mon, 9 Nov 2009 07:53:35 +0100 [thread overview]
Message-ID: <7f9b11c90911082253h4defb4acwbb2ea1e42e87c685@mail.gmail.com> (raw)
Hi,
I use etags a lot and find it invaluable for navigation in all code -
especially code that I am not familiar with.
I often find functions in several files that have the same name. I
think it would be good if etags could "prefer" find the function in
the buffer where I am calling find-tag from.
In the files below, go to file b and place the cursor at
"default_handler();". Wouldn't it make sense to end up in the the same
buffer?
Anyway, thanks a lot for all good work.
/Mats
file a.c
---------------8<----------------------
#include <stdio.h>
static void default_handler(void)
{
printf("Default in a!\n");
}
void a(void)
{
default_handler();
}
---------------8<----------------------
---------------8<----------------------
#include <stdio.h>
static void default_handler(void)
{
printf("Default in b!\n");
}
int main(void)
{
default_handler();
a();
return 0;
}
---------------8<----------------------
next reply other threads:[~2009-11-09 6:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-09 6:53 Matzi Kratzi [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-10-06 2:18 etags moheb missaghi
[not found] <mailman.8237.1056026853.21513.help-gnu-emacs@gnu.org>
2003-06-19 17:42 ` etags Peter Lee
[not found] <mailman.8073.1055852045.21513.help-gnu-emacs@gnu.org>
2003-06-19 9:36 ` etags Alan Mackenzie
2003-06-19 12:47 ` etags Kevin Dziulko
2003-06-17 12:09 etags Kevin Dziulko
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=7f9b11c90911082253h4defb4acwbb2ea1e42e87c685@mail.gmail.com \
--to=matzikratzi@gmail.com \
--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.