From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 8B7EBBC57 for ; Wed, 26 May 2010 15:33:18 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArgEAHO//EuGnQCBX2dsb2JhbACDF5sJCxcJCgYUAx+wHpB1gSWDBGoE X-IronPort-AV: E=Sophos;i="4.53,304,1272837600"; d="scan'208";a="51245210" Received: from shiva.jussieu.fr ([134.157.0.129]) by mail3-smtp-sop.national.inria.fr with ESMTP; 26 May 2010 15:33:18 +0200 Received: from hydrogene.pps.jussieu.fr (hydrogene.pps.jussieu.fr [134.157.168.1]) by shiva.jussieu.fr (8.14.4/jtpda-5.4) with ESMTP id o4QDXEcC016087 ; Wed, 26 May 2010 15:33:15 +0200 (CEST) X-Ids:165 Received: from [134.157.168.19] (dogguy@potassium.pps.jussieu.fr [134.157.168.19]) by hydrogene.pps.jussieu.fr (8.13.4/jtpda-5.4) with ESMTP id o4QDXDtR004452 ; Wed, 26 May 2010 15:33:13 +0200 Message-ID: <4BFD2319.7000702@pps.jussieu.fr> Date: Wed, 26 May 2010 15:33:13 +0200 From: Mehdi Dogguy Organization: PPS User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.9) Gecko/20100411 Iceowl/1.0b1 Icedove/3.0.4 MIME-Version: 1.0 To: Tom Hutchinson Cc: blue storm , tuareg-mode@googlegroups.com, caml-list@yquem.inria.fr, Sam Steingold Subject: Re: [Caml-list] new emacs tuareg mode release References: <4BFAAB04.40906@gnu.org> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Miltered: at jchkmail.jussieu.fr with ID 4BFD231A.004 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4BFD231A.004/134.157.168.1/hydrogene.pps.jussieu.fr/hydrogene.pps.jussieu.fr/ X-Spam: no; 0.00; emacs:01 tuareg:01 summarize:01 tuareg:01 syntax:01 caml-mode:01 caml-mode:01 mll:01 mll:01 foo:01 defaults:01 ocaml's:01 afaik:01 ocamldebug:01 toplevel:01 On 26/05/2010 12:02, Tom Hutchinson wrote: > I would be most interested to hear answers to this e-mail. > Me too. It would be nice if tuareg's upstream could summarize some points to show the difference. That would help! > I too have wondered about the differences between tuareg mode and caml > mode. > I use only two features in tuareg-mode which are syntax coloring and indentation (and from time to time, caml-show-types from caml-mode when debugging). So my remarks (below) might not be complete but should be enough (IMHO) for most of users to get an idea of the difference (for a daily use): - colors: * caml-mode doesn't colorize mll files as good as tuareg-mode: open any .mll file and look at any "rule foo bar = parse", it's all black. rules are functions, so they should be colorized the same way. * in caml-mode, functions and arguments have the same colors (when defining functions). * some operators are not colorized in caml-mode (e.g. "::"). I didn't check all of them, only "::"… but that's enough for me to not use caml-mode because, visually, "a::b" looks like a single block and might be harder to read (or to detect the structure when the expression if more complicated), which is not very nice. * in tuareg-mode 2.0, "let" and "open" statements (and some others) are bold and blue. I found that change quite surprising. It keeps my eyes clipped on them. They contrast too much with the other colors used. * in tuareg-mode 2.0, in mll files, rules are now harder to read because it uses mainly red (for symbols, let's say) and light brown for strings (as usual) and the contrast between these two colors is too low. It used to be dark purple and light brown which is (not perfect, but at least)a better default setting, IMHO. * For mly files, they provide almost the same coloring. - indentation: they simply have different defaults. caml-mode sticks to the recommendations listed on ocaml's website, AFAIK, which is nice. Indentation is configurable in both modes and is a matter of taste. - other features (ocamldebug, toplevel, …): almost the same, but with different names. Maybe there are some tiny differences here, but they don't pop up. It might obvious for some people but, apparently, maybe not for who set the new default colors, but syntax coloring is used to show in a *clear* way the structure of the code. From what I see, they both fail to provide a good syntax coloring. tuareg-mode 1.xx used to have better defaults. Some people might consider my remarks as nipticking, and I can understand that (since I can change these settings). But, tuareg-mode used to have good defaults and failing at such a basic features for such a program is completely crazy. Besides, I appreciate the efforts done from both sides and I hope that they'll get better soon. Regards, -- Mehdi Dogguy مهدي الدڤي http://www.pps.jussieu.fr/~dogguy