bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Global, Emacs & CEDET


From: Eric M. Ludlam
Subject: Global, Emacs & CEDET
Date: Thu, 11 Dec 2008 16:58:58 -0500

Hi,

  I wrote most of, and maintain the Emacs package CEDET
(http://cedet.sf.net) which implements lots of things.  (See web
page.)  It also has some features similar to GNU Global.

  For CEDET's tagging database feature, I have a simple way to
implement multiple back-ends, and have been working on a back-end so
someone can use Global to perform tag searches.  My tool then picks up
the hits, an fills in the rest.  (Tags in CEDET are much more complex
than just a name.)

  The stuff I've written so far is in CVS only, and is pretty
primitive.  If there is interest, I can post here (or somewhere) again
when it is better.

  I have some suggestions that deal with the output.  My starting
target language is C/C++, though others are good too.  If I missed
some detail in the doc, let me know.

1) references search.

  - I don't need the text from the file with the match, but I do need
    the file and line number.  At the moment I think the line # and
    extra text go together.

    If excluding the match-text makes things faster, then that would
    be a bonus option for me to use.

2) completions list.

  - I need both the tag name, and the file/line # when asking for a
    completion list.  That way if there are multiple occurrences of a name,
    I can extract the parent class, arg differences, etc to display
    that info.  In the case of jumping to a tag (and completing tag
    names), it is useful for the user to distinguish which tag they
    want to jump to.

    I realize I could just call global again to do that, but I'm
    lazy.  What else can I say. :)

3) gratuitous request.

   It would be even spiffier if Global had an option to output lisp
   structures, perhaps like this:

   ( "/my/filename.c" 10 )
   ( "/my/otherfile.c" 34 )

  The Emacs lisp reader is even faster than my regexp scanner.

Thanks
Eric

-- 
          Eric Ludlam:                       address@hidden
   Siege: www.siege-engine.com          Emacs: http://cedet.sourceforge.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]