From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id E3608BCAB for ; Tue, 31 May 2005 21:51:09 +0200 (CEST) Received: from xios.futurs.inria.fr (xios.futurs.inria.fr [195.83.212.137]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4VJp82Z017017 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 31 May 2005 21:51:09 +0200 Received: from xios.futurs.inria.fr (localhost [127.0.0.1]) by xios.futurs.inria.fr (8.13.0/8.12.10) with ESMTP id j4VJp8wt027037; Tue, 31 May 2005 21:51:08 +0200 Received: (from acohen@localhost) by xios.futurs.inria.fr (8.13.0/8.12.10/Submit) id j4VJp80r027036; Tue, 31 May 2005 21:51:08 +0200 Date: Tue, 31 May 2005 21:51:08 +0200 From: Albert Cohen To: =?iso-8859-1?Q?=22M=E1rk_S=2E_Zolt=E1n=22?= Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Tuareg mode vs. recursive modules Message-ID: <20050531215108.A27031@mailhost.futurs.inria.fr> Mail-Followup-To: Albert Cohen , =?iso-8859-1?Q?=22M=E1rk_S=2E_Zolt=E1n=22?= , caml-list@yquem.inria.fr References: <429CAB93.8030205@dravanet.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <429CAB93.8030205@dravanet.hu>; from zoltan.s.mark@dravanet.hu on Tue, May 31, 2005 at 08:23:15PM +0200 X-Miltered: at nez-perce with ID 429CC02C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 tuareg:01 recursive:01 bug:01 freezes:01 emacs:01 tuareg:01 emacs:01 rec:01 struct:01 recursive:01 rec:01 struct:01 functors:01 predictable:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: 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: > Hello, everyone - > > I was just recently been plagued with unexplainable freezes in Emacs > while using Tuareg. (I am using Emacs 21.3.1 on Windows 2000, Tuareg v. > 1.45.0-rc1) After a long search I have narrowed down the problem to the > following code: > > module rec A : B = > struct > end > and C : D = E(A) > > This sort of recursive module definition apparently is not identified as > a phrase by Tuareg, as a consequence it cannot be automatically > indented, so whenever I hit Alt-Q, Emacs just hangs/runs into an > infinite loop (95-98% CPU usage level). > > On the other hand, this code is harmless: > > module rec A : B = > struct > end > and C : D = > struct > end > > so the problem must lie with the use of functors in recursive modules. > > I have no good idea where to look next. Tried to make sense of the > phrase identification code in tuareg.el, but I am no Emacs guru, so my > failure was predictable. Tried it on a brand new install of Fedora - no > personal settings added, same Emacs and Tuareg versions as on W2K - and > it works (i.e. freezes) all the same. Searching the internet yielded no > clues at all. Is this a known problem, has anybody else encountered it? > > Thanks > > Z- > > > > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs -- Albert Cohen http://www-rocq.inria.fr/~acohen