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/ -----------------------------------------------------------------------------