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
Tuareg Mode and revised syntax
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Albert Cohen <Albert.Cohen@i...>
Subject: Tuareg Mode and revised syntax
The current debate about revised syntaxes and programming styles leads
me to the following remark about Tuareg mode for Emacs. Tuareg is is
not intended to be customized along all possible programming styles
and Camlp4 hacks, but some support can still be provided in one
particular case: syntax constructs which can't be handled without deep
and technical patches to the Emacs-Lisp code and which do not
interfere with classical syntaxes and programming styles.

This happens to be the case of the following syntaxes/styles
( blah
; blah
; blah
match ... with
  [ blah
  | blah
  | blah
now handled by the Tuareg mode.

For the `match ... with' syntax, proper indentation also requires
setting variable `tuareg-|-extra-unindent' to 0, unless you'd like a 4
characters indentation of `[' after the `with' keyword.

Moreover, version 1.38.1 fixes a lot of minor bugs, brings a standard
customization interface and replaces most ad-hoc fontification faces
with standard Emacs faces (same as C, Java, Lisp...).

Albert Cohen                  
                    INRIA Rocquencourt, BP 105, 78153 Le Chesnay, France