<?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="2005/05/254de433600810d5340a4bcd3c31c1f3"
  from="Albert Cohen &lt;Albert.Cohen@i...&gt;"
  author="Albert Cohen"
  date="2005-05-31T19:51:09"
  subject="Re: [Caml-list] Tuareg mode vs. recursive modules"
  prev="2005/05/fdf2bd05783c0bb0de410011f1a4ac08"
  next="2005/05/f7d03a54af7b3da73362c55370fff386"
  prev-in-thread="2005/05/8f8e681be57451487daa6b4e2be7fbe5"
  next-in-thread="2005/06/5803f0d759ab42b98cd68f9545981eec"
  prev-thread="2005/05/70a4d62f7a7f7263bdbb73a54bdf9587"
  next-thread="2005/05/fdf2bd05783c0bb0de410011f1a4ac08"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Tuareg mode vs. recursive modules">
<msg 
  url="2005/05/8f8e681be57451487daa6b4e2be7fbe5"
  from="Márk_S._Zoltán &lt;zoltan.s.mark@d...&gt;"
  author="Márk_S._Zoltán"
  date="2005-05-31T18:25:36"
  subject="Tuareg mode vs. recursive modules">
<msg 
  url="2005/05/254de433600810d5340a4bcd3c31c1f3"
  from="Albert Cohen &lt;Albert.Cohen@i...&gt;"
  author="Albert Cohen"
  date="2005-05-31T19:51:09"
  subject="Re: [Caml-list] Tuareg mode vs. recursive modules">
<msg 
  url="2005/06/5803f0d759ab42b98cd68f9545981eec"
  from="Márk_S._Zoltán &lt;zoltan.s.mark@d...&gt;"
  author="Márk_S._Zoltán"
  date="2005-06-03T15:55:03"
  subject="Re: [Caml-list] Tuareg mode vs. recursive modules">
</msg>
</msg>
</msg>
</thread>

<contents>
Thanks for the bug report.

It should be fixed right now, as well as a few previous bugs that I
had no time to fix for weeks... sorry about that.

Best regards,
                                                            Albert Cohen

On Tue, May 31, 2005 at 08:23:15PM +0200, "Márk S. Zoltán" wrote:

&gt; Hello, everyone -
&gt; 
&gt; I was just recently been plagued with unexplainable freezes in Emacs 
&gt; while using Tuareg. (I am using Emacs 21.3.1 on Windows 2000, Tuareg v. 
&gt; 1.45.0-rc1) After a long search I have narrowed down the problem to the 
&gt; following code:
&gt; 
&gt; module rec A : B =
&gt;   struct
&gt;   end
&gt; and C : D = E(A)
&gt; 
&gt; This sort of recursive module definition apparently is not identified as 
&gt; a phrase by Tuareg, as a consequence it cannot be automatically 
&gt; indented, so whenever I hit Alt-Q, Emacs just hangs/runs into an 
&gt; infinite loop (95-98% CPU usage level).
&gt; 
&gt; On the other hand, this code is harmless:
&gt; 
&gt; module rec A : B =
&gt;   struct
&gt;   end
&gt; and C : D =
&gt;   struct
&gt;   end
&gt; 
&gt; so the problem must lie with the use of functors in recursive modules.
&gt; 
&gt; I have no good idea where to look next. Tried to make sense of the 
&gt; phrase identification code in tuareg.el, but I am no Emacs guru, so my 
&gt; failure was predictable. Tried it on a brand new install of Fedora - no 
&gt; personal settings added, same Emacs and Tuareg versions as on W2K - and 
&gt; it works (i.e. freezes) all the same. Searching the internet yielded no 
&gt; clues at all. Is this a known problem, has anybody else encountered it?
&gt; 
&gt; Thanks
&gt; 
&gt;     Z-
&gt; 
&gt; 
&gt; 
&gt; 
&gt; _______________________________________________
&gt; Caml-list mailing list. Subscription management:
&gt; http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
&gt; Archives: http://caml.inria.fr
&gt; Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
&gt; Bug reports: http://caml.inria.fr/bin/caml-bugs

-- 
Albert Cohen                            http://www-rocq.inria.fr/~acohen

</contents>

</message>

