jed-users mailing list

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

Re: Bug#418529: jed: evalfile() no longer supporting ~ in path name


Hi Rafael, Hi John,

Rafael Laboissiere schrieb am Wed 11. Apr, 20:38 (+0200):
> * Jörg Sommer <joerg@xxxxxxxxxxxx> [2007-04-11 10:32]:
> 
> > % xjed -batch -f '()=evalfile("~/.jed/latex.sl")'
> > loading /usr/share/jed/jed-extra/~/.jed/latex.sl
> > Unable to load /usr/share/jed/jed-extra/~/.jed/latex.sl
> > Traceback: evalfile
> > ***string***:1:<top-level>:Open failed
> > Traceback: called from eval: ()=evalfile("~/.jed/latex.sl")
> > Traceback: eval
> > /usr/share/jed/lib/site.slc:3206:command_line_hook:Open failed
> >   Local variables for command_line_hook:
> >         Integer_Type command_line_hook = 1
> >         Integer_Type command_line_hook = 3
> >         String_Type command_line_hook = "-f"
> >         Integer_Type command_line_hook = 0
> >         String_Type command_line_hook = "()=evalfile("~/.jed/latex.sl")"
> >         Undefined_Type command_line_hook = Undefined_Type
> >         String_Type command_line_hook = "/home/joerg/.jed/jed.rc"
> >         String_Type command_line_hook = "()=evalfile("~/.jed/latex.sl")"
> >         Undefined_Type command_line_hook = Undefined_Type
> > Error encountered while executing command_line_hook
> 
> Is this a bug in JED?

I don't know.

@John: Can you explain, why the handling of ~ in path names changed
between 0.99.16 and now? Is this intended or a bug?

<4,1002>(ppc214):~% jed -batch -f '()=evalfile("~/foo")'          
loading /usr/share/jed/lib/site.slc
loading /usr/share/jed/lib/os.sl
loading /usr/share/jed/lib/menus.slc
loading /etc/jed.conf
loading /etc/jed-init.d/00debian.sl
loading /home/stud/md01/joergs/.jedrc
loading /usr/share/jed/lib/colors/black3.slc
loading /usr/share/jed/lib/keydefs.slc
loading /usr/share/jed/lib/compress.slc
loading /home/stud/md01/joergs/foo.slc
S-Lang Error: Object not opened: Unable to load /home/stud/md01/joergs/foo.slc
S-Lang Error: Object not opened: called from line 2, file: ***string***
S-Lang Error: Object not opened: called from eval: ()=evalfile("~/foo")
S-Lang Error: Object not opened: Error while executing command_line_hook
zsh: exit 4     jed -batch -f '()=evalfile("~/foo")'
<4,1003>(ppc214):~% jed --version
jed version: 0.99.16/Unix
 Compiled with GNU C 3.3
S-Lang version: 1.4.9

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

Using JED_ROOT=/usr/share/jed

The version above is a 0.99.19-40.

Bye, Jörg.

PS: Please keep the 418529-forwarded@b.d.o and 418529-submitter@b.d.o
  addresses in the recipient list.
-- 
“Unfortunately, the current generation of mail programs do not have
 checkers to see if the sender knows what he is talking about”
            (Andrew S. Tanenbaum)

Attachment: pgpRcn3kPcizA.pgp
Description: PGP signature


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