From: gallego@cri.ensmp.fr (Emilio Jesús Gallego Arias)
To: caml-list@inria.fr
Subject: Re: [Caml-list] How can I change the margin size in the toplevel?
Date: Tue, 22 Sep 2015 19:14:45 +0200 [thread overview]
Message-ID: <84io72z88q.fsf@cri.ensmp.fr> (raw)
In-Reply-To: <m2io733lct.fsf@polytechnique.org>
Hi Alan,
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> Format.pp_set_margin Format.err_formatter 200
>
> and
>
> Format.pp_set_margin Format.std_formatter 200
>
> inside the toplevel but it does not change the formatter for these
> messages.
I recall having some trouble with Format margins too, this snippet
worked for me(TM) in a custom application:
let set_pp fmt =
Format.pp_set_ellipsis_text fmt "[...]";
Format.pp_set_margin fmt (fmt_margin + 1); (* Don't ever ask *)
Format.pp_set_max_indent fmt fmt_margin in
set_pp Format.std_formatter;
set_pp Format.err_formatter;
> Is there a way to access the formatter used by the toplevel? And if not,
> is it possible to change the column at which word wrap happens?
Best regards,
Emilio
next prev parent reply other threads:[~2015-09-22 17:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-21 14:20 Alan Schmitt
2015-09-22 17:14 ` Emilio Jesús Gallego Arias [this message]
2015-09-23 6:48 ` Alan Schmitt
2015-09-23 7:26 ` David MENTRE
2015-09-23 12:23 ` Alan Schmitt
2015-09-23 16:05 ` Alan Schmitt
2015-09-23 16:39 ` Gabriel Scherer
2015-09-23 10:25 ` Emilio Jesús Gallego Arias
2015-09-23 11:34 ` Gerd Stolpmann
2015-09-23 12:16 ` Alan Schmitt
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=84io72z88q.fsf@cri.ensmp.fr \
--to=gallego@cri.ensmp.fr \
--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