caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: caml-list@inria.fr
Subject: [Caml-list] Re: Tuareg mode: Indentation of application arguments
Date: Mon, 08 Oct 2012 11:17:17 -0400	[thread overview]
Message-ID: <jwvtxu5t2u5.fsf-monnier+gmane.comp.lang.caml.inria@gnu.org> (raw)
In-Reply-To: <505DBBB3.10105@inria.fr>

> One big issue I have with indent-buffer (and also with M-q, actually) is
> that it will reindent stuff I have indented by hand to bypass some rules of
> Tuareg I don't like.

If the places where you need to override Tuareg's indentation are very
few, and if you use Tuareg's SMIE indenter, then you might be able to
use the (* fixindent *) comment, which tells Tuareg to not mess with
this line's indentation.

Lots of "if"s, I know.  But for now, it's best I could come up with.

Of course, maybe the particular indentation you want to use could be
mechanized as well, so you might want to report the "poorly indented"
cases as bugs.


        Stefan


      parent reply	other threads:[~2012-10-08 15:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-12 14:58 [Caml-list] " Romain Bardou
     [not found] ` <20120917.222210.832076572642519350.Christophe.Troestler@umons.ac.be>
2012-09-18  3:08   ` [Caml-list] " Stefan Monnier
2012-09-21 13:42   ` [Caml-list] " Romain Bardou
2012-09-21 20:11     ` Kristopher Micinski
2012-09-22 13:22       ` Romain Bardou
2012-09-22 13:53         ` Dmitry Grebeniuk
2012-09-22 18:13         ` Kristopher Micinski
2012-09-23  0:27           ` Edgar Friendly
2012-09-23  1:18             ` Kristopher Micinski
2012-10-08 15:17         ` Stefan Monnier [this message]

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=jwvtxu5t2u5.fsf-monnier+gmane.comp.lang.caml.inria@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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).