error loading source file
Manning, Michael
Michael.Manning at esr.cri.nz
Sun Sep 30 23:49:01 CEST 2001
Hello Tony and Jeff
Jeff, your lisp hack to fix the directory separator issue with C-c C-l when
running under windows, i.e. replacing
> (ess-command (format inferior-ess-load-command filename) errbuffer)
>
with
> (ess-command (format inferior-ess-load-command
> (let ((directory-sep-char ?/))
> (expand-file-name filename)))
> errbuffer)
>
in ess-inf.el appears to work just fine. Valid code loads noiselesly from
editing buffers, invalid code doesn't, producing error messages with the
line number in an error buffer. Many thanks.
MJM
Michael J. Manning
Information Analyst
Institute of Environmental Science and Research Ltd
PO Box 50-348
Porirua
New Zealand
Tel: 64 04 914 0700
D/D: 64 04 914 0744
Fax: 64 04 914 0770
> ----------
> From: Jeff Mincy[SMTP:jeff at delphioutpost.com]
> Sent: Saturday, September 29, 2001 1:07 AM
> To: rossini at u.washington.edu
> Cc: Manning, Michael; 'Andrew.Swan at csiro.au'; 'ESS Help'
> Subject: Re: error loading source file
>
> 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