jed-users mailing list

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

Weird problem with autoload...


On Tue, Mar 19, 2002 at 10:12:42AM +0100, Guenter Milde wrote:
> I'd rather suggest a question for help on the list... (After all, we don't
> know whether it is a bug or something weird in your setup or my home-lib.)

Ok, let's begin then. I've encountered a strange problem with jed, and
asked Guenter for help. He couldn't help me, so I tried to resolve this
by myself. The problem happend when I started to use home-lib, but
I've found that it isn't the direct cause.

In my struggle to trace this, I've created a very simple config:

.jedrc
---
_traceback=1;
_debug_info=1;

insert("start\n");
%if (BATCH==0) {
   autoload("foofunct","/home/alpha/foo.sl");
   insert("rc\n");
   foofunct();
%}

/home/alpha/foo.sl
---
define foofunct()
{
   insert("func\n");
}
   

It works fine, in the buffer I see:
start
rc
func

but when i uncomment 'if(BATCH==0) {' and '}' I'm starting to get
S-Lang Error: Undefined Name: foofunct is undefined' and the buffer
contains only:
start

Then when I comment 'foofunct()' it works fine and gives:
start
rc

When I move 'autoload(..)' over the if() line and uncomment
'foofunct()' it works as it should...

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.

Regars
Adam

-- 

  _.|._ |_  _.    : Adam Byrtek, alpha@xxxxxx
 (_|||_)| |(_|    : gg 1802819, pgp 0xB25952C0
     |            

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