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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 249367F20B for ; Fri, 8 Feb 2013 19:10:25 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of agarwal1975@gmail.com) identity=pra; client-ip=209.85.223.171; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="agarwal1975@gmail.com"; x-sender="agarwal1975@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of agarwal1975@gmail.com designates 209.85.223.171 as permitted sender) identity=mailfrom; client-ip=209.85.223.171; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="agarwal1975@gmail.com"; x-sender="agarwal1975@gmail.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@mail-ie0-f171.google.com) identity=helo; client-ip=209.85.223.171; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="agarwal1975@gmail.com"; x-sender="postmaster@mail-ie0-f171.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqMCAAY+FVHRVd+rm2dsb2JhbABFrhUyiRgBiSMIFg4BAQEBAQgJKCeCHwEBBAFAARsSCwEDAQsGBQsaISIBEQEFAQoSBhMICodsAQMJBgygV4w0gnuEQwoZJwMKWYh3AQUMkVADiGaNPoEdjVQWKYRB X-IPAS-Result: AqMCAAY+FVHRVd+rm2dsb2JhbABFrhUyiRgBiSMIFg4BAQEBAQgJKCeCHwEBBAFAARsSCwEDAQsGBQsaISIBEQEFAQoSBhMICodsAQMJBgygV4w0gnuEQwoZJwMKWYh3AQUMkVADiGaNPoEdjVQWKYRB X-IronPort-AV: E=Sophos;i="4.84,630,1355094000"; d="scan'208";a="2048324" Received: from mail-ie0-f171.google.com ([209.85.223.171]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 08 Feb 2013 19:10:24 +0100 Received: by mail-ie0-f171.google.com with SMTP id 10so5405895ied.2 for ; Fri, 08 Feb 2013 10:10:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=iaemZTnPBAUnmEXLEsHMM3K25QZyCpJafdTLmVOmFjQ=; b=LYPZmxr4yygiyh+3slIJmQxKu+1p8donQ2vh1kQHD2KOTaqj/dKPKwyr5vJiJIWkS0 b46n38IZSoajtIRGwHgasXPCg1d9tqgxEDkaSCYJWcCnpLI3+rdL2KVwvO9M1H13midz dWJ4FLR6qsQdMKIU/L/glfWFgeFqVKxjgilyyHSeYPiZHRzBKNp4fTWgzhTz92/+fPg+ iMID2uqac0NbYOfL8WtF4aR9k1O3RHJzqhqNRlCjiyLIxTDMUalRve0H9odtUEqDNy+t fzShLYmenoG/G506I7rtqjLXx7Ls3LieX/eKkyC3FkDXTq9B6qNInUFkC0BUufC9glO1 r79w== X-Received: by 10.50.33.146 with SMTP id r18mr4113560igi.110.1360347023010; Fri, 08 Feb 2013 10:10:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.47.229 with HTTP; Fri, 8 Feb 2013 10:10:02 -0800 (PST) In-Reply-To: <201302081625.29881.louis.gesbert@ocamlpro.com> References: <201302081625.29881.louis.gesbert@ocamlpro.com> From: Ashish Agarwal Date: Fri, 8 Feb 2013 13:10:02 -0500 Message-ID: To: Louis Gesbert Cc: caml-list@inria.fr Content-Type: multipart/alternative; boundary=f46d04462dc613eb4404d53a7949 Subject: Re: [Caml-list] ocp-indent beta release --f46d04462dc613eb4404d53a7949 Content-Type: text/plain; charset=ISO-8859-1 I installed typerex and ocp-indent, but don't find ocp-indent.el. And opam update says I'm up to date. $ opam info typerex package: typerex installed-version: typerex.1.99.0-beta [4.00.1+short-types] description: Set of tools and libraries for OCaml, developed by OCamlPro and INRIA $ opam info ocp-indent package: ocp-indent installed-version: ocp-indent.0.1.0 [4.00.1+short-types] description: A simple tool to indent OCaml programs $ cd ~/.opam $ find . -name "ocp-indent.el" (* no output *) On Fri, Feb 8, 2013 at 10:25 AM, Louis Gesbert wrote: > OCamlPro is proud to announce the beta-release of ocp-indent. > > Ocp-indent is a simple tool, entirely written in OCaml, which sole purpose > is to > indent OCaml code. It can plug-in seamlessly into emacs' tuareg mode, or > be run > from vim. > > You can try it now with: > > $ opam install ocp-indent > > $ INSTDIR="$(opam config var prefix)/share/typerex/ocp-indent" > > $ echo '(load-file "'"$INSTDIR/ocp-indent.el"'")' >>~/.emacs > > $ echo 'autocmd FileType ocaml source '"$INSTDIR"'/ocp-indent.vim' > >>~/.vimrc > > > Or check it out at https://github.com/OCamlPro/ocp-indent > > > > It presents many improvements over the tuareg indentation engine, a much > better > understanding of the syntax, linear complexity, specific handling for many > cases. Also, it was intentionally provided with much less customisation > options. > > Feel free to submit any code snippet that is not indented to your taste, > to help > us improve ocp-indent further. > > > Some comparison with tuareg on a few big OCaml projects can be seen at > http://htmlpreview.github.com/?https://github.com/AltGr/ocp-indent- > tests/blob/master/status.html > > > -- > Louis Gesbert, OCamlPro > > -- > 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 > --f46d04462dc613eb4404d53a7949 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I installed typerex and ocp-indent, but don't find ocp-indent.el. And o= pam update says I'm up to date.

$ opam info typ= erex
=A0 =A0 =A0 =A0 =A0 =A0 =A0package: typerex
=A0 = =A0installed-version: typerex.1.99.0-beta [4.00.1+short-types]
=A0 =A0 =A0 =A0 =A0description: Set of tools and libraries for OCaml, = developed by OCamlPro and INRIA

$ opam info ocp-in= dent
=A0 =A0 =A0 =A0 =A0 =A0 =A0package: ocp-indent
=A0= =A0installed-version: ocp-indent.0.1.0 [4.00.1+short-types]
=A0 =A0 =A0 =A0 =A0description: A simple tool to indent OCaml programs=

$ cd ~/.opam
$ find . -name "ocp-i= ndent.el"
(* no output *)


On Fri, Feb 8, 2013 at 10:25 AM, Louis Gesbert <louis.gesbert@oca= mlpro.com> wrote:
OCamlPro is proud to announce the beta-release of ocp-indent.

Ocp-indent is a simple tool, entirely written in OCaml, which sole purpose = is to
indent OCaml code. It can plug-in seamlessly into emacs' tuareg mode, o= r be run
from vim.

You can try it now with:

$ opam install ocp-indent

$ INSTDIR=3D"$(opam config var prefix)/share/typerex/ocp-indent"<= br>
$ echo '(load-file "'"$INSTDIR/ocp-indent.el"'&q= uot;)' >>~/.emacs

$ echo 'autocmd FileType ocaml source '"$INSTDIR"'/oc= p-indent.vim' >>~/.vimrc


Or check it out at https://github.com/OCamlPro/ocp-indent



It presents many improvements over the tuareg indentation engine, a much be= tter
understanding of the syntax, linear complexity, specific handling for many<= br> cases. Also, it was intentionally provided with much less customisation opt= ions.

Feel free to submit any code snippet that is not indented to your taste, to= help
us improve ocp-indent further.


Some comparison with tuareg on a few big OCaml projects can be seen at
http://htmlpreview.github.= com/?https://github.com/AltGr/ocp-indent-
tests/blob/master/status.html



--
Louis Gesbert, OCamlPro

--
Caml-list mailing list. =A0Subscription management and archives:
ht= tps://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

--f46d04462dc613eb4404d53a7949--