<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/07/624777314e6c3b0f7ad344d329fa309e"
  from="Damien Doligez &lt;Damien.Doligez@i...&gt;"
  author="Damien Doligez"
  date="2003-07-22T11:17:55"
  subject="Re: [Caml-list] camlp4"
  prev="2003/07/776d2c77ba72d4f7c3c9923252934201"
  next="2003/07/2f8cce1d29d5fc71ef63217dff101107"
  prev-in-thread="2003/07/d4d6779e696c7436b44b4b3962ecc363"
  prev-thread="2003/07/a271f4688bedcc68d89571a4f7b2cc1f"
  next-thread="2003/07/f403c5aea2503d60d196e2a58761da75"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] -unsafe and camlp4">
<msg 
  url="2003/07/d4567e135396aa37ca95126cae72c96f"
  from="Dmitry Bely &lt;dbely@m...&gt;"
  author="Dmitry Bely"
  date="2003-07-08T12:49:28"
  subject="[Caml-list] -unsafe and camlp4">
<msg 
  url="2003/07/3602dd50ba7b695ba1cd813784db4fb4"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-07-08T13:38:19"
  subject="Re: [Caml-list] -unsafe and camlp4">
<msg 
  url="2003/07/d4d6779e696c7436b44b4b3962ecc363"
  from="Dmitry Bely &lt;dbely@m...&gt;"
  author="Dmitry Bely"
  date="2003-07-08T15:38:47"
  subject="Re: [Caml-list] camlp4">
<msg 
  url="2003/07/624777314e6c3b0f7ad344d329fa309e"
  from="Damien Doligez &lt;Damien.Doligez@i...&gt;"
  author="Damien Doligez"
  date="2003-07-22T11:17:55"
  subject="Re: [Caml-list] camlp4">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Tuesday, July 8, 2003, at 05:38 PM, Dmitry Bely wrote:

&gt; There is another problem with camlp4. When it reports syntax error, it
&gt; doesn't count the lines, say:
&gt;
&gt; File "test.ml", line 1, characters 12398-12401:
&gt; &lt;...&gt;
&gt;
&gt; (line is always equal to 1, at least under Windows)
&gt;
&gt; I compile Ocaml sources within XEmacs/Win32/tuareg mode, and Emacs 
&gt; consider
&gt; EOL in the buffer as ONE character, while camlp4 counts it as TWO 
&gt; chars. So
&gt; the error place is pointed incorrectly.
&gt;
&gt; How do you think, where it could be fixed? (camlp4, tuareg,...)?

It needs to be fixed in camlp4. It will need a non-trivial amount
of work, so it will be done only after release 3.07.

In the meantime, you could try to convince emacs that CR LF is really
two characters, not one.

-- Damien

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

