Menu

#13 Need info on how to load init files for CLISP

open
nobody
None
5
2003-09-05
2003-09-04
No

Using Xemacs 2.4.13 on WinXP, with ILISP 5.12 and CLISP
2.30. Can start CLISP in inferior process, but get
error that CLISP cannot find init files (e.g.
ilisp-pkg.lisp). Appears to be due to fact that file
name being passed to CLISP includes '\' as path
separator, instead of '/'. Have done some research in
ilisp-snd.el and ilisp-hi.el, but have not figured out
how to prevent file name problem.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Are you using the Win32 version of CLISP or are you running
    a Unix-y version under cygwin? I think one difference is in
    the way path separators are handled. -win32.zip, not tar.gz.
    That's just a vague recollection, hope it works.

     
  • Alexander Stockdale

    Logged In: YES
    user_id=10078

    In answer to the question, I am using the win32 version of
    CLISP. Further update: I think I have solved the problem (or
    at least, found a fix). I modified file-name-hack in ilisp-hi.el
    to check for system-type of 'windows-nt, and ilisp-dialect
    of 'clisp-hs. If both conditions satisfied, I use replace-in-
    string to change "\\" to "/".

    This may not be the most elegant fix, but it works, and at
    least the changes are localized to a function that already
    kludges filenames.

     
  • Alexander Stockdale

    Logged In: YES
    user_id=10078

    In answer to the question, I am using the win32 version of
    CLISP. Further update: I think I have solved the problem (or
    at least, found a fix). I modified file-name-hack in ilisp-hi.el
    to check for system-type of 'windows-nt, and ilisp-dialect
    of 'clisp-hs. If both conditions satisfied, I use replace-in-
    string to change "\\" to "/".

    This may not be the most elegant fix, but it works, and at
    least the changes are localized to a function that already
    kludges filenames.

     
  • Alexander Stockdale

    • status: open --> pending
     
  • Alexander Stockdale

    • status: pending --> open
     
  • Alexander Stockdale

    Logged In: YES
    user_id=10078

    Attaching a copy of a modified ilisp-hi.el with hack so that
    init filenames can be handled by clisp.

     
  • Alexander Stockdale

    Modified ilisp-hi.el with hack so that init filenames are passed to CLISP in a format it can handle.

     

Log in to post a comment.