- Subject: Re: bug: jed loads file twice
- From: Joerg Sommer <joerg@xxxxxxxxxxxx>
- Date: Mon, 10 Apr 2006 08:40:22 +0000 (UTC)
Hello John,
"John E. Davis" <davis@xxxxxxxxxxxxx> wrote:
> Joerg Sommer <joerg@xxxxxxxxxxxx> wrote:
>
>>define email_mode_hook()
>>{
>> message("bla");
>> email->goto_end_of_headers();
>> message("blub");
>>}
>>
>>mail_mode();
>
> You can immediately see what will happen when mail_mode is called:
> First it is loaded from email.sl into the global namespace, and then
> when called, it calls email_mode_hook. The hook makes a call to
> email->goto_end_of_headers, which jed has been instructed to load into
> the email namespace. This causes email.sl to be loaded twice: once
> for the global namespace and once for the email namespace.
Ahh, I understand. Thanks for your explanation.
Regards, Jörg.
--
Im Leben lernt der Mensch als erstes das Gehen und Sprechen.
Später lernt er still zu sitzen und den Mund zu halten.
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2006 date index]
[2006 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]