From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Richard F Weber" To: David Capel Cc: sourcenav@sources.redhat.com Subject: Re: auto completion Date: Mon, 16 Apr 2001 12:52:00 -0000 Message-id: <3ADB4D6B.5040106@link.com> References: X-SW-Source: 2001-q2/msg00098.html Speaking of which, this brings up a small problem I conveniently ignored when working on my parser. Is there a way to search for symbols in a given set of files? For example, in Ada, you can "Use" a file (basically include it), and then do a "with" to reduce the namespace. This tends to make it tough if you do a "Use pkg_a; with pkg_a" & "Use pkg_b; with pkg_b", and a call is made to a function called "func1". Which package do you reference to? How do you know if "func1" belongs to pkg_a or pkg_b? I did find a routine called get_symbol, but I'm having a heck of a time trying to figure out how to call it right, and what is necessary. Is there any other routine I can use to do quick queries like that against the database, or will I have to dig into the DB_API to write my own? This seems to tie right in because the editor could be set-up to analyze on the fly which files are included in, and offer those symbols as automatic completion for the end-user to use. Thanks. --Rich David Capel wrote: >Are there any plans to add tab-completion on symbol names in the editor, >along the lines of the Emacs "hippie-expand" packages? ( Or does this >feature already exist and I've missed it? ) I work with a set of C++ >libraries which have some very long class/member/function names, and >this feature is indispensible. > >Source Navigator is a great project. Keep up the good work! > >David > > >