From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p0RKSC6m017653 for ; Thu, 27 Jan 2011 21:28:12 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgMBAB9kQU3RVda2kGdsb2JhbACkdQgVAQEBAQkJDAcRBCCiAYl/gheFCC6IWQEBAwWFSgSFF4cQhls X-IronPort-AV: E=Sophos;i="4.60,387,1291590000"; d="scan'208";a="88599181" Received: from mail-iw0-f182.google.com ([209.85.214.182]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-MD5; 27 Jan 2011 21:28:06 +0100 Received: by iwn39 with SMTP id 39so2504358iwn.27 for ; Thu, 27 Jan 2011 12:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=3+dfeeb/c3/qQpZi+JPbehnvdBXk3Dgfh3bbzCSvDX0=; b=Cq5ojqb4nX4pHJCu+LbLinnQ4q/WkN2MzvMPXKTdv1xkUnnmPR6Zwdx6wB3zAjBk96 cjPCSji4E3ZzhdJSkzyuYsKAN6FpXzz1n+6+NMOacHlVMo8/iFPU5h4nSa2RkXrDRnB+ BwraE24St4Xmmh2OF5RgRQ8i9iT88WR+lsOFg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=izgWyjB5vIXxUTT4b/eo934ztaal4RaF4XgcozYlWykrv0QXqwZTbIMLN3smRuulPx V+1alkKEliWAwF9i+X1W5F8nNUx1SrCh1tcGp9JezjT7xfTGKjE1S3NhGVyDhd/WnYi8 M0fCOTXFiDnQ6axaEtA3Oi1gY3GhmGMytDpak= Received: by 10.231.199.197 with SMTP id et5mr1547340ibb.67.1296160083793; Thu, 27 Jan 2011 12:28:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.14.10 with HTTP; Thu, 27 Jan 2011 12:27:43 -0800 (PST) In-Reply-To: References: From: Ashish Agarwal Date: Thu, 27 Jan 2011 15:27:43 -0500 Message-ID: To: Raoul Duke Cc: OCaml Content-Type: multipart/alternative; boundary=90e6ba4fc3cc5dd7ef049ad9c9c9 Subject: Re: [Caml-list] emacs mode? --90e6ba4fc3cc5dd7ef049ad9c9c9 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jan 27, 2011 at 1:46 PM, Raoul Duke 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. --90e6ba4fc3cc5dd7ef049ad9c9c9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Thu, Jan 27, 2011 at 1:46 PM, Raoul Duke <raould@gmail.com&= gt; 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.
=A0
<= br>
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<= br> regexp looks to me like it is looking for ocaml style comments, and no
indentation happens.

I've never see= n this either.=A0

=A0
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=3Dint" lines as = well as after
"let myfn x =3D 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. Howeve= r, I suspect you have other issues since you should not be getting any of t= he errors you mention above. Maybe try a fresh emacs install and/or a diffe= rent system.

--90e6ba4fc3cc5dd7ef049ad9c9c9--