all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Francesco Potortì" <pot@gnu.org>
To: "vr.sundar" <vr.sundar@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: etags format question
Date: Sun, 04 Jan 2009 22:44:34 +0100	[thread overview]
Message-ID: <E1LJalu-0001ns-CZ@tucano.isti.cnr.it> (raw)
In-Reply-To: <63acfd6c0901020909j75a05bb8j2b3d6b19ab8e64ab@mail.gmail.com>

>I have a question regarding etags format and tags processing in
>etags.el. The etags format per the wikipedia entry
>http://en.wikipedia.org/wiki/Ctags is:
>
>    {tag_definition_text}<\x7f>{tagname}<\x01>{line_number},{byte_offset}
>
>Should the current tag text being looked for be a substring of the
>tag_definition_text or is it enough if it is a substring of tagname?

There is a series of matches tried.  Look at the find-tag-tag-order in
etags.el.  The tagname is the exact symbol one is looking for.  Have a
look at etc/ETAGS.EBNF too, and feel free to ask for more clarifications.

>I'm trying to set things up for ruby code to be able to jump to the
>right class taking module namespace into account. I used rtags to
>generate the tags (etags doesn't list ruby in the list of supported
>languages, ctags generates tags but doesn't qualify them with the
>module name.) The problem is when I hit M-. and type in ModA::ClassA I
>get back a no tag found, even though if I open up the tag file, I can
>see multiple instances of ModA::ClassA. And the tag is found if I just
>type ClassA though in this case it finds all the matches in other
>modules too. rtags generates tags like this:
>
>class A^?\x7f::ModA::ClassA\x01^A13,317

No, you should have something like
class A (^?ModA::ClassA^A13,317

try to use etags on a C++ file and look at what it produces.

By the way, maybe Ruby code could be tagged by etags as a special case
of C++ handling?  Java is managed this way, but I do not know how near
Ruby is to C++/Java.




      reply	other threads:[~2009-01-04 21:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-02 17:09 etags format question vr.sundar
2009-01-04 21:44 ` Francesco Potortì [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=E1LJalu-0001ns-CZ@tucano.isti.cnr.it \
    --to=pot@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=vr.sundar@gmail.com \
    /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.