Re: erl-complete ...
Bill Clementson <[email protected]> Wed, 12 Sep 2007 14:28:20 -0700
| Newsgroups | gmane.comp.lang.erlang.distel.devel |
|---|---|
| Message-ID | <[email protected]> |
Matthias Radestock <[email protected]> writes: > Pierre Radermecker wrote: >> I am wondering why some completions do not seem to work. For instance "math:" >> only gives pi(). None of the functions in the erlang module seems to >> complete(list_to, is_, ...) > > This is not distel's fault. There is something odd about these modules; > xref cannot see much in them either: > > (x@h)2> xref:start(foo, {xref_mode, modules}). > {ok,<0.158.0>} > (x@h)3> xref:add_release(foo, code:lib_dir(), {name, otp}). > ok > (x@h)4> xref:q(foo, 'X * math:_/_'). > {ok,[{math,pi,0}]} > (x@h)6> xref:q(foo, 'X * erlang:"list_to.*"/_'). > {ok,[{erlang,list_to_integer,2}]} > (x@h)7> xref:q(foo, 'X * erlang:"is_.*"/_'). > {ok,[]} 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. - 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/