Distel

Juan Jose Comellas <>
Thu Jun 4 19:21:50 CEST 2009


The situation is the following:

a) If I start the Erlang shell, start Emacs and do 'C-c C-d w' on Emacs
everything blocks. After that if I try to run distel:who_calls/3 from the
Erlang node Emacs is connecting to, it also blocks.

b) If I start the Erlang shell from scratch (i.e. without a previous
interaction with Emacs) and call distel:who_calls/3 everything works. Also,
if after running this function I start Emacs and do 'C-c C-d w' it also
works.

Maybe the problem is not in Erlang but in this version of Emacs, because I
was using Erlang R12B-5 with Ubuntu Intrepid and I'm using Erlang R13B with
Ubuntu Jaunty. The problem seems to be related to the initialization phase
of Distel.

What can I do to give you more information of what is happening within
Emacs?



On Thu, Jun 4, 2009 at 1:43 PM, mats cronqvist <> wrote:

> Juan Jose Comellas <> writes:
>
> > Whenever I press C-c C-d w to get the list of callers for a specific
> > function the request is sent to the Erlang node but Distel on Emacs is
> > apparently not receiving any response.
>
>   what happens if you run
>
> distel:who_calls(pbx_json,encode_api_reply,1).
>
>  in the erl shell?
>
> > The trace I see on Emacs is the following:
> >
> >>> REG_SEND: [TYPE erl-pid  3 0 0] rex [[TYPE erl-pid
> >  3 0 0] [call code ensure_loaded (distel) [TYPE
> erl-pid
> >  1 0 0]]]
> >>> REG_SEND: [TYPE erl-pid  2 0 0] rex [[TYPE erl-pid
> >  2 0 0] [call distel rpc_entry (distel who_calls
> > (pbx_json encode_api_reply 1)) [TYPE erl-pid  1 0
> 0]]]
> > << SEND: [TYPE erl-pid  3 0 0] [rex [module distel]]
> >
> > The different versions of the software involved are:
> >
> > Ubuntu Linux 9.04 (amd64)
> > Erlang R13B
> > Emacs 23.0.91.1 (from the emacs-snapshot package)
> > Distel (from SVN trunk)
>
>   distel.googlecode.com I suppose?
>
>  mats
>


More information about the erlang-questions mailing list