Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] ocaml-mode-3.05
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-07 (13:38)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] ocaml-mode-3.05
From: David Fox <>

> 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

Jacques Garrigue
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: