jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Weird problem with autoload...


Adam Byrtek <alpha@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>%if (BATCH==0) {
>   autoload("foofunct","/home/alpha/foo.sl");
>   insert("rc\n");
>   foofunct();
>%}
[...]
>So why can't I have autoload() after 'if (BATCH==0)'? Seems strange to
>me. BTW I'm not running jed in batch mode! Moreover I moved out any
>extra extensions - only clean Debian install left.

The block of code in the braces first get compiled and then executed.
During the compilation stage, foofunct does not exist causing the
error that you see.

You can use this:
    
    #ifeval BATCH==0
      autoload("foofunct","/home/alpha/foo.sl");
      insert("rc\n");
      foofunct();
    #endif

--John

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2002 date index] [2002 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]