error loading source file

Jeff Mincy jeff at delphioutpost.com
Fri Sep 28 15:07:17 CEST 2001


   From: rossini at blindglobe.net (A.J. Rossini)
   Date: 27 Sep 2001 20:54:48 -0700
   
   >>>>> "JM" == Jeff Mincy <jeff at delphioutpost.com> writes:
   
       JM>    From: rossini at blindglobe.net (A.J. Rossini) Date: 26 Sep
       JM> 2001 16:06:30 -0700
      
       JM> You mean
   
       JM>   (if stupid-windows-os (replace "\\" "\\\\" string))
   
   Yes.   I did say, "like..." (3 weeks away from lisp, and I can't get
   anything straight...).
   
       JM> Another possibility, that I haven't tried, is to bind
       JM> directory-sep-char to unixy style ?/ instead of windows ?\\
   
   Good idea, but...

Xemacs seems to do the right thing on the windows build when you call
expand-file-name with directory-sep-char rebound...


  (let ((directory-sep-char ?/))
    (expand-file-name "c:\\home\\jmincy\\contour.R")) -->

  "c:/home/jmincy/contour.R"

in <ess>/lisp/ess-inf.el

(defun ess-load-file ...

We could try changing:

    (ess-command (format inferior-ess-load-command filename) errbuffer)

To
    (ess-command (format inferior-ess-load-command
                   (let ((directory-sep-char ?/))
                    (expand-file-name filename)))
                 errbuffer)

I think it will work, but it would need to be verified...

-jeff
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list