jed-users mailing list

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

Re: slang load path


Joerg Sommer <joerg@xxxxxxxxxxxx> wrote:
> Hi,
>
> autoload() searches the file in the slang load path. This is "." by
> default. Jed should add its lib path in a startup file to it. I've added
>
> $1=get_jed_library_path();
> ()=strreplace($1, ",", char(path_get_delimiter()), strlen($1));
> set_slang_load_path( () );
>
> to my jed.rc, but I think it would be better placed in site.sl or
> somewhere else.
>
> Comments!

I found this bug again and it only comes up in xjed, not in jed. In xjed
I need a appropriated value for slang load path, otherwise I get an error
from menus.sl and ispell.sl.

#v+
$ jed --batch -f 'autoload("sigrot", "sigrot"); sigrot' |tail -n3
loading /usr/share/jed/lib/textmode.sl
loading /usr/share/jed/lib/modeinfo.sl
Signature 28 inserted.  [SigRoT]
$ xjed --batch -f 'autoload("sigrot", "sigrot"); sigrot' |tail -n3
loading /home/joerg/.jed/.jedrc
loading /usr/share/jed/lib/keydefs.sl
Signature 51 inserted.  [SigRoT]
$ jed --batch -f 'set_slang_load_path(""); autoload("sigrot", "sigrot"); sigrot' |tail -n3
loading /usr/share/jed/lib/textmode.sl
loading /usr/share/jed/lib/modeinfo.sl
Signature 97 inserted.  [SigRoT]
$ xjed --batch -f 'set_slang_load_path(""); autoload("sigrot", "sigrot"); sigrot' |tail -n3
Unable to locate sigrot on load path
***string***:1:<top-level>:Open failed
loading /var/cache/dictionaries-common/jed-ispell-dicts.sl
loading /home/joerg/.jed/.jedrc
loading /usr/share/jed/lib/keydefs.sl
$ xjed --version
jed version: B0.99.17-56/Unix
 Compiled with GNU C 3.3
S-Lang version: 2.0.3
*** Compiled against S-Lang 20000 but linked to 20003

jed compile-time options:
 +LINE_ATTRIBUTES +BUFFER_LOCAL_VARS +SAVE_NARROW +TTY_MENUS
 +EMACS_LOCKING +MULTICLICK +SUBPROCESSES +DFA_SYNTAX +ABBREVS
 +COLOR_COLUMNS +LINE_MARKS +GPM_MOUSE +IMPORT

Using JED_ROOT=/usr/share/jed
#v-

Jörg.
-- 
Viele Leute glauben, daß sie denken, wenn sie lediglich
ihre Vorurteile neu ordnen.

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