From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 B68A7BC57 for ; Tue, 20 Jul 2010 16:56:37 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtsDAKRVRUyBrw8EgWdsb2JhbACfbRUBARYiIsEMhTIE X-IronPort-AV: E=Sophos;i="4.55,233,1278280800"; d="scan'208";a="54525958" Received: from ext.lri.fr ([129.175.15.4]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 20 Jul 2010 16:56:37 +0200 Received: from localhost (localhost [127.0.0.1]) by ext.lri.fr (Postfix) with ESMTP id DC44DA470C for ; Tue, 20 Jul 2010 16:56:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at lri.fr Received: from ext.lri.fr ([127.0.0.1]) by localhost (ext.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CTZj-fORQivA for ; Tue, 20 Jul 2010 16:56:36 +0200 (CEST) Received: from smtp-ng.lri.fr (smtp-ng [129.175.3.73]) by ext.lri.fr (Postfix) with ESMTP id C5712A46E5 for ; Tue, 20 Jul 2010 16:56:36 +0200 (CEST) Received: from [129.175.4.238] (lri4-238 [129.175.4.238]) by smtp-ng.lri.fr (Postfix) with ESMTP id B19F112001F for ; Tue, 20 Jul 2010 16:56:36 +0200 (CEST) Message-ID: <4C45B882.7060805@lri.fr> Date: Tue, 20 Jul 2010 16:53:54 +0200 From: Romain Bardou User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: caml-list Subject: New Tuareg Mode Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; lri:01 tuareg:01 tuareg:01 readable:01 functions:01 match:02 match:02 let:03 let:03 indentation:04 indentation:04 debian:04 ugly:04 problem:05 anyway:05 Hello, So I've updated my Debian a few weeks ago and it updated tuareg-mode. It's great to know that Tuareg is still maintained. I remembered seeing a thread here with some reproaches, about colors or something. Well I don't really care about colors, they have always been ugly anyway. However I do care about indentation and there was a modification that I don't really like. The following code: let f = function | A -> 1 | B -> 2 match x with | A -> 1 | B -> 1 is now indented like this: let f = function | A -> 1 | B -> 2 match x with | A -> 1 | B -> 1 I find it less readable. I don't care about indenting too much on the right : if the indentation is too large I can simply cut the code into several functions. Which is good practise anyway. Problem is, I can't find a way to configure Tuareg to indent pattern-matching the way it did before. I tried to change everything related to |, with, and -> with no success. Note that I would probably be fine with: let f = function | A -> 1 | B -> 2 match x with | A -> 1 | B -> 1 although I prefer the original version. Any idea? Now, I now that it's just a matter of taste and that it's not really important, so if nothing can be done, so be it. -- Romain Bardou