I guess I wasn't clear. My problem is not with ensure_loaded, as I can type what you wrote, but with the emacs system which generates the wrong form of the path name, as far as Ciao is concerned.
----- Original Message ----- From: "Guy Murphy" <guy.murphy(a)easynet.co.uk> To: "Alan Baljeu" <alanb(a)cornerstonemold.com> Sent: Friday, June 21, 2002 9:18 AM Subject: Re: Emacs ciao-Prolog buffer in Windows
Have you tried...
ensure_loaded('C:/ciao-1.8p2Win32/tmp/test.pl').
...for the most part Windows doesn't care if you use forward or backslashes, and forward slashes don't have to be escaped, and are compatible with more systems.
If that's not the issue, then it may well be that the path the file is visible under Cygwin is different that under the native OS.
Cheers, Guy.
----- Original Message ----- From: "Alan Baljeu" <alanb(a)cornerstonemold.com> To: <ciao-users(a)clip.dia.fi.upm.es> Sent: Friday, June 21, 2002 11:54 AM Subject: Emacs ciao-Prolog buffer in Windows
The system seems mostly to work, except for loading info from buffers into the shell. The problem is those \, put in by the ^c-l command. Any
hints
on how to make this work with forward slashes to make Ciao happy?
?- ensure_loaded('C:\ciao-1.8p2Win32\tmp\test.pl'). {ERROR: absolute_file_name/7, arg 1 - file C:iao-1.8p2Win32 mp est.pl not found}
I'm using Xemacs 21.4.
Alan Baljeu
============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------
I guess I wasn't clear. My problem is not with ensure_loaded, as I can type what you wrote, but with the emacs system which generates the wrong form of the path name, as far as Ciao is concerned.
I am just _guessing_ here: from the message Ciao Prolog gives you:
?- ensure_loaded('C:\ciao-1.8p2Win32\tmp\test.pl'). {ERROR: absolute_file_name/7, arg 1 - file C:iao-1.8p2Win32 mp est.pl not found}
I have the impression that Ciao Prolog received an atom in which the backslashes have been "preinterpreted" as escape sequences. Could you try with
?- ensure_loaded('C:\ciao-1.8p2Win32\tmp\test.pl').
and see what is the result? If this works, then probably the (interactive) buffer mode in Emacs is taking the backslashes as escape sequences, and interpreting them. It is true that this the Emacs comes with Ciao, but (small) differences between Emacs (which is the main development environment we use) and XEmacs might be the cause. We'll look into solving it in an upcoming release.
MCL
___________________________________________ ¡Hay, qué miedo saber tanto! (Lola Flores). ============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------