caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: david@lindows.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] ocaml-mode-3.05
Date: Wed, 07 Aug 2002 22:37:49 +0900	[thread overview]
Message-ID: <20020807223749T.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <87ofceyhja.fsf@foxthompson.net>

From: David Fox <david@lindows.com>

> I did notice that when I loaded a buffer
> in ocaml-mode the comments were not colorized properly, though when I
> toggled font-lock mode off and on they came out right.

This is a bit strange: when you load a file, ocaml-mode colorize the
whole buffer, just as when toggle on-and-off, or use font-lock-fontify
buffer. So the result should not differ.
However, as soon as you edit the text, colorization is done
individually on each modified line, and may come out incorect.

> This is also my main problem with tuareg mode - mysterious
> colorization behavior.

You're pretty much limited by font-lock's capabilities.
Which means no support for incremental multiline colorizing.
No surprise you encounter the same problems.

> I'm pretty sure the indentation will not be a big issue for me.

Then any mode should please you: in ocaml-mode colorizing is less than
100 lines (just regular expression, that you may twiddle yourself if
you want), while indentation is more than 1000 (most of caml.el).
There is a huge gap in complexity, because caml syntax is so
unstructured.

Jacques Garrigue
-------------------
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


  reply	other threads:[~2002-08-07 13:38 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-05  6:49 Jacques Garrigue
2002-08-06  5:04 ` Blair Zajac
2002-08-06  7:38   ` Jérôme Marant
2002-08-06  9:01     ` Dmitry Bely
2002-08-06 19:23       ` Blair Zajac
2002-08-06 23:37 ` Jeffrey Palmer
2002-08-07  0:18   ` Jacques Garrigue
2002-08-07  5:25     ` Alexander V. Voinov
2002-08-07  5:54       ` Yang Shouxun
2002-08-07 23:50         ` Jacques Garrigue
2002-08-08  1:19           ` Yang Shouxun
2002-08-12 23:11             ` ocaml-info. was: " Alexander V.Voinov
2002-08-12 23:51               ` Henrik Motakef
2002-08-13  9:23               ` Olivier Andrieu
2002-08-13 21:13                 ` Alexander V.Voinov
2002-08-08  6:34           ` Sven LUTHER
2002-08-08  7:12             ` Jacques Garrigue
2002-08-07  6:11       ` Michael Vanier
2002-08-07  6:25     ` Jacques Garrigue
2002-08-07 12:34   ` David Fox
2002-08-07 13:37     ` Jacques Garrigue [this message]
2002-08-09 17:16       ` David Fox

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=20020807223749T.garrigue@kurims.kyoto-u.ac.jp \
    --to=garrigue@kurims.kyoto-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=david@lindows.com \
    /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).