From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id C5D0B7ED26 for ; Wed, 23 May 2012 20:04:59 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoABAPglvU/RVde2kGdsb2JhbAApGoMdsQcIIgEBAQEJCQ0HFAQjghUBAQEEEgITCwEFCAEbHAIDDAYFCw0JFg8JAwIBAgEREQEFARwTCAEBBRmHXAEDCwQHKZwPCQOMIoJwhHkKGScNV4hxAQUMinEigWiDFgOVGIVPiEY9hAo X-IronPort-AV: E=Sophos;i="4.75,645,1330902000"; d="scan'208";a="159614085" Received: from mail-ey0-f182.google.com ([209.85.215.182]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 23 May 2012 20:04:59 +0200 Received: by eabm6 with SMTP id m6so2916752eab.27 for ; Wed, 23 May 2012 11:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=BTVlVLnrOy8P6nYhNcclEWUQu2xNsGGkIsFIIuXJhfc=; b=K2kXRtT3sBD/8+hSBNwPmXfnFjkgw8To2wYuSvDicMp76OU5doW0ko76z4hXOGTKCx JFkZsmngCzxM4kTZGZyPeV7E2f08lJHhIjshhQn7QBgChfd2Cn/DYEc/ZvMl2ZIzZdpb K6ApOcNrvrtNN+695z9GTM7+nNXSMr5v8RUngE620TXyYLK2sfs7e+b0wQWuwGV8cK40 zNA4hYAFIRdefEkzrNiG2phjCvEnGB0sVasgX82f4FUqI3Wx9LtBJWaTpYbibcuomMEy q8r2SAvdmJHJynbdzMo7IqWoqkjiaVtspq3BD3sW+u+Y1SA3wTq5KGKNGz5/tfuIrUWG 3m7g== Received: by 10.213.27.24 with SMTP id g24mr1688666ebc.109.1337796298928; Wed, 23 May 2012 11:04:58 -0700 (PDT) Received: from [10.69.8.215] (suze.rez-metz.supelec.fr. [193.48.225.215]) by mx.google.com with ESMTPS id y54sm126683928eef.10.2012.05.23.11.04.57 (version=SSLv3 cipher=OTHER); Wed, 23 May 2012 11:04:58 -0700 (PDT) Message-ID: <4FBD268A.5020908@gmail.com> Date: Wed, 23 May 2012 20:03:54 +0200 From: Thibault Suzanne User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: caml-list@inria.fr References: <4FBCFF05.5030500@lsv.ens-cachan.fr> <4FBD1B7C.9040209@gmail.com> In-Reply-To: <4FBD1B7C.9040209@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Caml-list] Re: Tuareg-mode and pipes | Hi Alternatively you could use typerex from ocamlpro (http://www.typerex.org/), which indents the way you want. As for the features, it does at least what tuareg does (and a few additionnal things which i did not tested). Thibault Suzanne Le 23/05/2012 19:16, Hongbo Zhang a écrit : > On 5/23/12 11:15 AM, Romain Bardou wrote: >> Hi list, >> >> About two years ago, the following bug was reported: >> https://forge.ocamlcore.org/tracker/index.php?func=detail&aid=659&group_id=43&atid=255 >> >> >> >> If you don't want to click, here is the issue. Tuareg indents >> pattern-matching like this: >> >> match x with >> | Bla -> >> hello >> >> But the previous behavior of Tuareg, which I prefer, was: >> >> match x with >> | Bla -> >> hello >> >> I have occasionally been updating my tuareg-mode, looking forward for >> this "tuareg-pipe-indent" variable (see the comments in the bug report), >> while patiently re-indenting pattern-matching by hand. But this >> variable, or any similar variable, never appeared. >> >> After two years, I'm becoming suspicious that something went wrong. Does >> anybody know what happened to the patch? Or how I can get my preferred >> behavior back? >> >> A related question is the following. I read here a few weeks ago a claim >> that the caml-mode was much better than the tuareg-mode. I was not able >> to find a comparison between these two modes, to support this claim, nor >> whether the caml-mode would fix the pipe behavior for me. Any comment >> here would be appreciated. > It's true. > I previously used tuareg-mode, switched to caml-mode then >> >> Cheers, >> > >