[cl-cookbook-contrib] [ cl-cookbook-Bugs-848235 ] XEmacs/ilisp on windows, setup problem
Brought to you by:
jthing
From: SourceForge.net <no...@so...> - 2003-12-08 05:06:47
|
Bugs item #848235, was opened at 2003-11-24 05:04 Message generated for change (Comment added) made by bill_clementson You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=848235&group_id=46815 Category: None Group: None Status: Closed Resolution: None Priority: 5 Submitted By: d2003xx (d2003xx) Assigned to: Bill Clementson (bill_clementson) Summary: XEmacs/ilisp on windows, setup problem Initial Comment: (sorry if I post to wrong place) [XEmacs v21.4.14, ilisp v5.12.0, windows-xp] 1.Corman Lisp needs a hack to avoid hanging in ilisp: Open the file "C:\Program Files\Corman....\init.lisp", then remove or comment out this line (#3): (setf (current-directory) *cormanlisp-directory*) 2.The path problem, "\" is trimmed when ilisp sends commands containing filenames to clisp and cormanlisp. ex: "c:\lisp\a.lisp" becomes "c:lispa.lisp" in clisp/cormanlisp intepreter. Solution: add followings in ~/.xemacs/init.el (defun my-ilisp-file-name-hack (file-name) "Strip ange-ftp and cygwin pathnames prefixes for the native local lisp, AND CHANGE \ to /" (cond ((string-match "/.*?@.*:" file-name) (substring file-name (match-end 0))) ((not (eq system-type 'cygwin32)) file-name) ; verified on XEmacs ;; assume cygwin clisp on cygwin (X)Emacs ((eq ilisp-dialect 'clisp-hs) file-name) ;; => w32 path for non-cygwin lisps only. ((string-equal "/cygdrive/" (subseq file-name 0 10)) (concat (subseq file-name 10 11) ":" (subseq file-name 11))) (t file-name)) (while (string-match "\\" file-name) (setq file-name (replace-match "/" t nil file-name))) file-name) (defun my-ilisp-load-setup () (fset 'file-name-hack 'my-ilisp-file-name-hack)) (add-hook 'ilisp-load-hook 'my-ilisp-load-setup) ---------------------------------------------------------------------- >Comment By: Bill Clementson (bill_clementson) Date: 2003-12-07 22:06 Message: Logged In: YES user_id=463744 Modified windows.html and .emacs to incorporate support for Corman Lisp v2.5. No changes have been made for xemacs as only Gnu Emacs is supported at this stage. ---------------------------------------------------------------------- Comment By: Bill Clementson (bill_clementson) Date: 2003-12-07 22:06 Message: Logged In: YES user_id=463744 Modified windows.html and .emacs to incorporate support for Corman Lisp v2.5. No changes have been made for xemacs as only Gnu Emacs is supported at this stage. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=848235&group_id=46815 |