caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David House <dhouse@janestreet.com>
To: Adrien Nader <adrien@notk.org>
Cc: Francois Berenger <berenger@riken.jp>, caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] long lines in some OCaml code
Date: Thu, 3 Oct 2013 08:09:41 +0100	[thread overview]
Message-ID: <CAK=fH+j440kxt-P_iKWzqBJLZztaTc2KKDL4Wef4pSa7TpW3Uw@mail.gmail.com> (raw)
In-Reply-To: <20131003070732.GA1830@notk.org>

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 <adrien@notk.org> 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<movement>"
> 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

  reply	other threads:[~2013-10-03  7:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-03  6:58 Francois Berenger
2013-10-03  7:07 ` Adrien Nader
2013-10-03  7:09   ` David House [this message]
2013-10-03  8:09 ` Lukasz Stafiniak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK=fH+j440kxt-P_iKWzqBJLZztaTc2KKDL4Wef4pSa7TpW3Uw@mail.gmail.com' \
    --to=dhouse@janestreet.com \
    --cc=adrien@notk.org \
    --cc=berenger@riken.jp \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).