Re: erl-complete ...

Matthias Radestock <[email protected]> Sat, 15 Sep 2007 05:59:59 +0100
Newsgroups gmane.comp.lang.erlang.distel.devel
Message-ID <[email protected]>
[email protected] wrote:
> I've made the following changes:  [...]

There is one other thing you may want to change.

Currently the functions completion code doesn't actually use the 
function name prefix. Yet it works, presumably because the filtering 
happens on the emacs side (though I still have to figure out how).

Anyway, I reckon it would be cleaner to do the filtering on the erlang 
side. For that just change

     case  xref_q(?COMPLETION_SERVER, ?COMPLETION_SERVER_OPTS,
                  "(X+B) * ~p:_/_", [Mod]) of

to

     case  xref_q(?COMPLETION_SERVER, ?COMPLETION_SERVER_OPTS,
                  '(X+B) * ~p:"~s.*"/_', [Mod, Prefix]) of


Matthias

-------------------------------------------------------------------------
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/