From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id D69BA7EE4B for ; Thu, 3 Oct 2013 09:09:44 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of dhouse@janestreet.com) identity=pra; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dhouse@janestreet.com"; x-sender="dhouse@janestreet.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of dhouse@janestreet.com designates 38.105.200.229 as permitted sender) identity=mailfrom; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dhouse@janestreet.com"; x-sender="dhouse@janestreet.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@tot-dmz-mxout1.janestreet.com) identity=helo; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dhouse@janestreet.com"; x-sender="postmaster@tot-dmz-mxout1.janestreet.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqoBANwXTVImacjlnGdsb2JhbABagz9SrmGSWIEXHg4BAQEBAQYWCTyCJQEBBUABASwLAQ8LCw0NISISAQUBChIGEwgBCYdiAw8DCZ5riwyEUAEFhF8DiW8Gj1EHhCOYBIEvjmUYKYRP X-IPAS-Result: AqoBANwXTVImacjlnGdsb2JhbABagz9SrmGSWIEXHg4BAQEBAQYWCTyCJQEBBUABASwLAQ8LCw0NISISAQUBChIGEwgBCYdiAw8DCZ5riwyEUAEFhF8DiW8Gj1EHhCOYBIEvjmUYKYRP X-IronPort-AV: E=Sophos;i="4.90,1024,1371074400"; d="scan'208";a="35355567" Received: from mx5.janestreet.com (HELO tot-dmz-mxout1.janestreet.com) ([38.105.200.229]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 Oct 2013 09:09:43 +0200 Received: from tot-oib-smtp1.delacy.com ([172.27.22.15] helo=tot-smtp) by tot-dmz-mxout1.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1VRd2c-00029Z-1u for caml-list@inria.fr; Thu, 03 Oct 2013 03:09:42 -0400 Received: from tot-dmz-mxgoog1.delacy.com ([172.27.224.14] helo=mxgoog2.janestreet.com) by tot-smtp with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1VRd2c-0005eR-0i for caml-list@inria.fr; Thu, 03 Oct 2013 03:09:42 -0400 Received: from mail-qe0-f53.google.com ([209.85.128.53]) by mxgoog2.janestreet.com with esmtp (Exim 4.76) (envelope-from ) id 1VRd2b-0000WT-Uz for caml-list@inria.fr; Thu, 03 Oct 2013 03:09:41 -0400 Received: by mail-qe0-f53.google.com with SMTP id jy17so1416274qeb.26 for ; Thu, 03 Oct 2013 00:09:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=q7kHdhbXWVNgfdze+gEBiywCda5k+gd16FuHbwK1pYY=; b=Ku251/pufwPTNujMh9+yY6nakXDH4zpGxnp+rs1k5hU+ibYwPCAWMSzRVhVzRBbwHl 3nsDfQpyWjKFt/2XDKcbT1QqQGXBuK4v3QRRQdN2M3apWoq6cCRektcpytGFK0S6wgs6 QspKfiiESCw3bJgKu9fcVasGh/oWsK1FrHaXU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=q7kHdhbXWVNgfdze+gEBiywCda5k+gd16FuHbwK1pYY=; b=dqUYkIoquE+Yq+psaXBHGTWy593eLTeV5NzN9OQNkAYT3x3PI7w5DaoXBQbhrswVSl rpg2sFw81or7DxwfdKGbiuA0MVuYN8kO5Zb0DkbnkbBphrhI/uUJ6muUhPguNnMGI6aj lCr89+tiFmryXFOfER0vgGJdDTJgZpMZ5tYQLYDhCa9eYdRTwpkekaEBOTOx6B9diwzZ AkEtBpG8cM5joO6LSRAGLgjkwId1eM7CH6Xcj1pLQhu81yhi3yl35xNp5it+hSRv5Zd+ 178euKC1JFLrc/lkIW/iXMmsuA2hrf3juupbVZ26+AsPWk9sqv99NmetDpgKNCI1hcz3 mjJw== X-Gm-Message-State: ALoCoQkQ5AM85nltBq2JnguFAXd1PlqD3JMyWkCgFLdJuF4BmxAhwX9/mbVyejqNWEguXNBKGAFMEaiFUX5eqLes8Tb6bMT9TH6R3bCZWNS6F4egHhVbR4qVGsDTnhvhD3nUwDNv5HGCCemZBkyVPCz0MOIjc5BdnA== X-Received: by 10.224.126.6 with SMTP id a6mr8522360qas.15.1380784181843; Thu, 03 Oct 2013 00:09:41 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.126.6 with SMTP id a6mr8522351qas.15.1380784181776; Thu, 03 Oct 2013 00:09:41 -0700 (PDT) Received: by 10.140.41.242 with HTTP; Thu, 3 Oct 2013 00:09:41 -0700 (PDT) In-Reply-To: <20131003070732.GA1830@notk.org> References: <524D15AE.3050600@riken.jp> <20131003070732.GA1830@notk.org> Date: Thu, 3 Oct 2013 08:09:41 +0100 Message-ID: From: David House To: Adrien Nader Cc: Francois Berenger , caml users Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Caml-list] long lines in some OCaml code I generally find highlighting in my editor with ugly background colours characters that are past your personal max column preference is a good way to achieve this. There are a few exceptions to the max column width that I would not like to automatically wrap -- sometimes for whatever reason you really need a long line. On 3 October 2013 08:07, Adrien Nader wrote: > 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 > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs