all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* etags
@ 2003-06-17 12:09 Kevin Dziulko
  0 siblings, 0 replies; 6+ messages in thread
From: Kevin Dziulko @ 2003-06-17 12:09 UTC (permalink / raw)


Hello

I am looking for a way to get a list of all user defined #define's in some 
C code that actaully get used.  I was reading up a little on etags, and I 
think it might help me with this.  Has anyone done or seen anything close 
to this?

Example:
#include <stdio.h>
#define MSG1 "Hello, world!"
#define CONST1 42

int main ()
{
    (void) printf("\n%s\n", MSG1);

    return 0;
}

/////////////////

Idealy, I would want something to say:

Line 7: MSG1


Perhaps this isn't the best place to post this. If you know a better 
place, please let me know.

Thanks a lot!
Kevin

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <mailman.8073.1055852045.21513.help-gnu-emacs@gnu.org>]
[parent not found: <mailman.8237.1056026853.21513.help-gnu-emacs@gnu.org>]
* etags
@ 2004-10-06  2:18 moheb missaghi
  0 siblings, 0 replies; 6+ messages in thread
From: moheb missaghi @ 2004-10-06  2:18 UTC (permalink / raw)


Hi, I created a tags file using etags *.el */*.el in the lisp dir. find-tag
works when emacs is fired for just 1 time and then I get:

wrong type argument: stringp...

Any idea? thx.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* etags
@ 2009-11-09  6:53 Matzi Kratzi
  0 siblings, 0 replies; 6+ messages in thread
From: Matzi Kratzi @ 2009-11-09  6:53 UTC (permalink / raw)
  To: emacs-devel

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




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

end of thread, other threads:[~2009-11-09  6:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-17 12:09 etags Kevin Dziulko
     [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
     [not found] <mailman.8237.1056026853.21513.help-gnu-emacs@gnu.org>
2003-06-19 17:42 ` etags Peter Lee
  -- strict thread matches above, loose matches on Subject: below --
2004-10-06  2:18 etags moheb missaghi
2009-11-09  6:53 etags Matzi Kratzi

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.