From boris@aaron.ls.fi.upm.es Fri Jun 21 20:22:21 2002
From: Manuel Carro <boris@aaron.ls.fi.upm.es>
To: ciao-users@cliplab.org
Subject: Re: Emacs ciao-Prolog buffer in Windows
Date: Fri, 21 Jun 2002 20:21:46 +0200
Message-ID: <15635.28346.64463.574449@salmon.ls.fi.upm.es>
In-Reply-To: <000d01c2194e$354baa90$98c80ac6@ak1000b>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============8184375696144935197=="

--===============8184375696144935197==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Alan Baljeu writes:
>> ?- ensure_loaded('C:\\ciao-1.8p2Win32\\tmp\\test.pl').
>>=20
>> yes
>> ?- write('e\tf').
>> e f
>> yes
>> ?-
>>=20
>> Surely it's prolog which interprets the single \ as an escape
>> sequence?  But 2 \\ works okay.

    What I get in Linux from your second query is

?- write('e\tf').
e	f
yes

because '\t' is passed to Ciao Prolog verbatim and interpreted as a
tabular by Ciao Prolog; see also:

?- set_prolog_flag(write_strings, off).

yes
?- atom_codes('e\tf', X).

X =3D [101,9,102] ?=20

yes

where \t translates to the ninth ascii code (sorry about this low
level parlance).  However I guess that this is not what is happening
in your case, i.e., Ciao Prolog is not receiving a backslash _and_ a
't', but some precooked code.  Again, if this is so, it is the Emacs
mode which should be change to behave properly under XEmacs.


        MCL

__________________________________________
=C2=A1Ay, qu=C3=A9 miedo saber tanto! (Lola Flores).
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
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 l=
ist
<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/
-----------------------------------------------------------------------------

--===============8184375696144935197==--


