Re: erl-complete ...

Bill Clementson <[email protected]> Fri, 14 Sep 2007 13:06:47 -0700
Newsgroups gmane.comp.lang.erlang.distel.devel
Message-ID <[email protected]>
Hi Matthias,

Matthias Radestock <[email protected]> writes:

> Bill Clementson wrote:
>> Matthias Radestock <[email protected]> writes:
>>> This is not distel's fault. There is something odd about these
>>> modules; xref cannot see much in them either:
>
>> Probably because they're BIF's that are implemented in C rather than
>> Erlang:
>>
>> (emacs@bc)7> erl_bifs:is_bif(math, pi, 0).
>> false
>> (emacs@bc)8> erl_bifs:is_bif(math, sin, 1).
>> true
>>
>> Do a "M-." on "math:pi()" and you'll see that it's the only function
>> in the source file.
>
> In which case I know how to fix this:
[snip examples]

Great - will you be preparing a patch to the Call Graph code so that
who_calls will also return info on BIF's?

> (except distel's completion currently isn't using xref, but it should)

I guess the main problem with using xref for completion is speed. The
xref who_calls build process is fairly slow and (if a lot of new
functions are being added) could result in lengthy wait times when you
want to get a completion. I guess you could use a separate (different
from the who_calls server) xref server that always rebuilds and only
gets functions for the specified module though. Was that what you had
in mind?

- Bill

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/