caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ashish Agarwal <agarwal1975@gmail.com>
To: Raoul Duke <raould@gmail.com>
Cc: OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] emacs mode?
Date: Thu, 27 Jan 2011 15:27:43 -0500	[thread overview]
Message-ID: <AANLkTimLenarWQ71J+J6C+MC2amdWiiMkCyTsvE7rVUm@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimW825BkjnWOj6UGVioBbMxUkPcnQZnMBk1QV0e@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]

On Thu, Jan 27, 2011 at 1:46 PM, Raoul Duke <raould@gmail.com> wrote:

> 1) if i try to indent-region i get things like Symbol's function
> definition is void: tuareg-before-change-function.
>

This works for me without any errors.


2) sometimes just using tab to indent i get an error (that i can't
> figure out how to reproduce right now so this is just my recollection
> of the emacs error message) about how a regexp isn't matching, and the
> regexp looks to me like it is looking for ocaml style comments, and no
> indentation happens.
>

I've never seen this either.



> 3) sometimes i don't get an error, but the indentation is just not
> right to my eye, and sometimes i can fix it by e.g. selecting the
> whole buffer and doing indent-region, but sometimes not. or by putting
> in ";;" everywhere, like after "type x=int" lines as well as after
> "let myfn x = x" definitions.
>

The double semicolon is mostly used in the top-level. Although there is
sometimes good use of them in source files, it is bad style to include them
unnecessarily.

There are some customizations possible to make it more to your liking. See
the included custom-tuarag.el file for examples. However, I suspect you have
other issues since you should not be getting any of the errors you mention
above. Maybe try a fresh emacs install and/or a different system.

[-- Attachment #2: Type: text/html, Size: 2077 bytes --]

  reply	other threads:[~2011-01-27 20:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26 23:47 Raoul Duke
2011-01-27 13:38 ` Daniel Bünzli
2011-01-27 15:08 ` Ashish Agarwal
2011-01-27 18:46   ` Raoul Duke
2011-01-27 20:27     ` Ashish Agarwal [this message]
2011-01-27 20:29       ` Raoul Duke
2011-01-28 14:26       ` Damien Doligez
2011-01-27 20: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=AANLkTimLenarWQ71J+J6C+MC2amdWiiMkCyTsvE7rVUm@mail.gmail.com \
    --to=agarwal1975@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=raould@gmail.com \
    /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).