From: "\"Márk S. Zoltán\"" <zoltan.s.mark@dravanet.hu>
To: caml-list@yquem.inria.fr
Subject: Tuareg mode vs. recursive modules
Date: Tue, 31 May 2005 20:23:15 +0200 [thread overview]
Message-ID: <429CAB93.8030205@dravanet.hu> (raw)
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-
next reply other threads:[~2005-05-31 18:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-31 18:23 "Márk S. Zoltán" [this message]
2005-05-31 19:51 ` [Caml-list] " Albert Cohen
2005-06-03 15:52 ` "Márk S. Zoltán"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=429CAB93.8030205@dravanet.hu \
--to=zoltan.s.mark@dravanet.hu \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).