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 sympa.inria.fr (Postfix) with ESMTPS id 91AF07EE4B for ; Thu, 3 Oct 2013 09:07:33 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of adrien@notk.org) identity=pra; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of adrien@notk.org designates 91.121.71.147 as permitted sender) identity=mailfrom; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@nautica.notk.org) identity=helo; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="postmaster@nautica.notk.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhQFALUWTVJbeUeT/2dsb2JhbABagwc4gxJovhGBHxZ0giUBAQUjVhALGAICBRMOAgIPBRgxHIgBCKpskjiBKY4oB4JqNYEEA5gAAZF/gyY6 X-IPAS-Result: AhQFALUWTVJbeUeT/2dsb2JhbABagwc4gxJovhGBHxZ0giUBAQUjVhALGAICBRMOAgIPBRgxHIgBCKpskjiBKY4oB4JqNYEEA5gAAZF/gyY6 X-IronPort-AV: E=Sophos;i="4.90,1024,1371074400"; d="scan'208";a="28923621" Received: from nautica.notk.org ([91.121.71.147]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 03 Oct 2013 09:07:33 +0200 Received: by nautica.notk.org (Postfix, from userid 1003) id 3DD34C009; Thu, 3 Oct 2013 09:07:32 +0200 (CEST) Date: Thu, 3 Oct 2013 09:07:32 +0200 From: Adrien Nader To: Francois Berenger Cc: caml users Message-ID: <20131003070732.GA1830@notk.org> References: <524D15AE.3050600@riken.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <524D15AE.3050600@riken.jp> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [Caml-list] long lines in some OCaml code Hi, On Thu, Oct 03, 2013, Francois Berenger wrote: > Is there a way to automatically cut all long lines > in a code base (and indent the cut part correctly)? That's something I never do automatically on whole files for fear of making huge and ugly diffs but instead with vim's "gq" command. It works well except for strings that end up spanning lines (but that's a matter of vim configuration :) ). If you want to do it on whole files (with a commit that only does reformatting :) ), you might want to look at ocp-indent[1]. [1] http://www.typerex.org/ocp-indent.html -- Adrien Nader