Re: EDE documentation

Eric Ludlam <[email protected]> Sun, 09 Aug 2015 20:52:30 -0400
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
On 08/09/2015 11:22 AM, Stephen Leake wrote:
>>>       ede-find-file does not do completion on the file name. I looked at
>>> >>      the code; it looks complicated, because of the locate objects. Emacs
>>> >>      has very nice file name completion now, so it would be good to
>>> >>      improve this. The Emacs filename completion takes a flat list of
>>> >>      directories (like load-path or compilation-search-path), so we'd
>>> >>      have to construct that out of all the locate objects. I'll look into
>>> >>      it more.
>> >
>> >The location system is pretty old and it delegates to external tools.
>> >Newer systems like what you suggest I'm sure would be better.
>> >
>> >All the objects do is abstract away the different tools so EDE can ask
>> >where some file is.  Most usage of this is not related to users asking
>> >to visit a file, but for a tool to move to a file based on a
>> >short-name reference, so completion was never a priority for me.
> So do you plan on rewriting the location stuff, or should I work on
> extracting a completion path?
>
> If there are external tools involved, they must have their own notion of
> source-path, so we might need a new query to ask for that, rather than
> expanded file names.

Yes, they do.  Most of these tools are wrapped with cedet-* functions to 
make getting that sort of thing easier.  For example, after (require 
'cedet-global) you can do M-x cedet-gnu-global-show-root

> I assume it's ok to add completion to this, or perhaps add a similar
> function that does completion.

There is only ede-find-file, which could certainly do with a completion 
helper.  To be honest, I remember very little about it, but I suspect a 
new completion method would be needed for each locate implementation 
(one each for global, idutils, etc).  The support in cedet-* for each 
would need to be added for that particular feature as I only added 
tagcompletion support.

Thanks
Eric


------------------------------------------------------------------------------