jed-users mailing list

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

Re: slang load path


On Sat, 26 Feb 2005 10:27:28 +0000 (UTC), Joerg Sommer <joerg@xxxxxxxxxxxx> said:

> Do you use autoload()? This is a SLang function where jed doesn't have
> influence on it -- or does jed overwrite it?

Autoload is not overwritten as far as I know, but when you call a function
for which an autoload is defined, it should search the file in the directories
specified in set_jed_library_path, *not* set_slang_load_path.


In slang/slang.c, execute_slang_fun() calls SLang_load_file() which calls 
SLns_load_file() which calls the SLang_Load_File_Hook.
The SLang_Load_File_Hook is defined in JED/ledit.c on line 2303:

SLang_Load_File_Hook = jed_load_file;

Now jed_load_file() calls jed_open_lib_file() which uses a variable
Jed_Library and this is the variable used in [sg]et_jed_library_path().

Now, you said that you needed to set the slang_load_path to the
jed_library_path.  Since the slang_load_path is not used, it should not make a
difference to whatever problems you may have with autoloading.

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


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