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 17C9DBC57 for ; Tue, 20 Jul 2010 17:36:40 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnsCAANfRUzRVaE2kGdsb2JhbACBQ54iCBUBAQEBCQkMBxEDH4gXp0qCEIYsLohUAQEDBYUtBIhZ X-IronPort-AV: E=Sophos;i="4.55,233,1278280800"; d="scan'208";a="54528121" Received: from mail-fx0-f54.google.com ([209.85.161.54]) by mail3-smtp-sop.national.inria.fr with ESMTP; 20 Jul 2010 17:36:39 +0200 Received: by fxm13 with SMTP id 13so3499040fxm.27 for ; Tue, 20 Jul 2010 08:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=bwrW1NnIbwxgNzPUlEEqs59KwY6eWOxs9lG6qebR2cg=; b=g67DAZV4qN1hOOtQ2zEWy0d6sAoiYcuiVWr2jbA1u5waZkU+LD6inDVpJKGcgYPavP EdTf4QxMAz92WVDIFWRvkGuiSwO+SVMS931ylbp9YvcJTpbZfeIHwF6lQy5IRBh1lIeb 9CbEZBDywd9ERR4rBS0VzCg0aPLhqCCz4xhTU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=MBnYVEpPPhdemqxZTCh7K8nIcHY4uXYDZhdYUqaROWTxktMC8JPSGNSSrWmsD+z8e3 OhVu8bb+jNWKl+yTQwZVOAv683NWVy5f1Sp+YWzuB3rGcn8nguvlvQ+Q1SscPg6lZQyL 3f/oXRhILjSC2E5S4c32UCY+m85srKnbNnaTA= MIME-Version: 1.0 Received: by 10.216.52.140 with SMTP id e12mr5547067wec.87.1279640199270; Tue, 20 Jul 2010 08:36:39 -0700 (PDT) Received: by 10.216.160.78 with HTTP; Tue, 20 Jul 2010 08:36:39 -0700 (PDT) In-Reply-To: <4C45B882.7060805@lri.fr> References: <4C45B882.7060805@lri.fr> Date: Tue, 20 Jul 2010 17:36:39 +0200 Message-ID: Subject: Re: [Caml-list] New Tuareg Mode From: Julien Signoles To: Romain Bardou Cc: caml-list Content-Type: multipart/alternative; boundary=0016e6dee7ca849225048bd373d8 X-Spam: no; 0.00; tuareg:01 signoles:01 signoles:01 lri:01 tuareg:01 lri:01 z-index:98 margin-top:98 line-height:98 readable:01 readable:01 font-size:98 inline:01 caml-list:01 functions:01 --0016e6dee7ca849225048bd373d8 Content-Type: text/plain; charset=ISO-8859-1 Hello Romain, 2010/7/20 Romain Bardou > 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. > This issue is already reported and discussed on the Tuareg BTS at ocamlforge, as well as some other issues : https://forge.ocamlcore.org/tracker/index.php?func=detail&aid=659&group_id=43&atid=255 . -- Julien --0016e6dee7ca849225048bd373d8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Romain,

2010/7/20 Romain Bardou &l= t;Romain.Bardou@l= ri.fr>
So I've updated my Debian a few weeks ago and it updated tuareg-mode. I= t'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&#= 39;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 re= ally like. The following code:

let f =3D function
=A0| A ->
=A0 =A0 =A01
=A0| B ->
=A0 =A0 =A02

match x with
=A0| A ->
=A0 =A0 =A01
=A0| B ->
=A0 =A0 =A01

is now indented like this:

let f =3D function
=A0| A ->
=A0 =A01
=A0| B ->
=A0 =A02

match x with
=A0| A ->
=A0 =A01
=A0| B ->
=A0 =A01

I find it less readable. I don't care about indenting too much on the r= ight : if the indentation is too large I can simply cut the code into sever= al functions. Which is good practise anyway.

Problem is, I can't find a way to configure Tuareg to indent pattern-ma= tching the way it did before. I tried to change everything related to |, wi= th, and -> with no success.

This issue is already reported and discussed on the Tuareg BTS at ocamlforg= e, as well=20 as some other issues :
https://forge.ocamlcore.org/tra= cker/index.php?func=3Ddetail&aid=3D659&group_id=3D43&atid=3D255= .

--
Julien

--0016e6dee7ca849225048bd373d8--