From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 30CC0BC88 for ; Fri, 4 Feb 2005 23:11:44 +0100 (CET) Received: from hedwig1.umh.ac.be (hedwig2.umh.ac.be [193.190.193.73]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j14MBhpU023201 for ; Fri, 4 Feb 2005 23:11:44 +0100 Received: from poincare (mail@poincare.swapping.umh.ac.be [10.102.100.22]) by hedwig1.umh.ac.be (8.13.1/8.13.1) with ESMTP id j14MFBv7716966; Fri, 4 Feb 2005 23:15:11 +0100 Received: from poincare ([127.0.0.1] helo=localhost ident=trch) by poincare with esmtp (Exim 3.36 #1 (Debian)) id 1CxBfx-0005p9-00; Fri, 04 Feb 2005 23:11:41 +0100 Date: Fri, 04 Feb 2005 23:11:41 +0100 (CET) Message-Id: <20050204.231141.23907652.Christophe.Troestler@umh.ac.be> To: jon@jdh30.plus.com Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] The boon of static type checking From: Christophe TROESTLER In-Reply-To: <200502042142.21439.jon@jdh30.plus.com> References: <200502041800.56581.jon@jdh30.plus.com> <20050204.213800.32745842.Christophe.Troestler@umh.ac.be> <200502042142.21439.jon@jdh30.plus.com> Organization: Universite de Mons-Hainaut (http://math.umh.ac.be/an/) X-Spook: basement tempest AGT. AMME AIMSX ANZUS Serbian S Key $400 million in gold bullion explosion strategic X-Blessing: Om Ah Hum Vajra Guru Pema Siddhi Hum X-Operating-System: GNU/Linux (http://www.linux.org/) X-Mailer-URL: http://www.mew.org/ X-Mailer: Mew version 4.2rc1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.1 (www dot roaringpenguin dot com slash mimedefang) X-Miltered: at nez-perce with ID 4203F31F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 christophe:01 troestler:01 christophe:01 troestler:01 umh:01 wrote:01 ocamlc:01 emacs:01 emacs:01 annotation:01 ocaml:01 incorrectly:01 incorrectly:01 syntax:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: On Fri, 4 Feb 2005, Jon Harrop wrote: > > Sorry, I meant what does "ocamlc -dtypes" do? I can't find it in the > man pages or on-line docs. It generates *.annot files that emacs can use to display the types. > When I do "M-x caml-types-show-types" and hit enter, emacs just > adds "[No match]" and beeps. This is strange, the message should be: No annotation file. You should compile with option "-dtypes". (you are working with the latest version of the tools, don't you) > I have never been very happy with emacs' editing of ocaml. I often > find that it randomly starts to indent incorrectly (as if the code > were in a comment), comments are incorrectly syntax highlighted and > have some code on which it indents wrongly every time. Do you use the standard OCaml mode or Tuareg (http://www-rocq.inria.fr/%7eacohen/tuareg/)? I personally use the latter and I do not have such problems. > I have no idea what that means, but I just tried it and emacs inserted > "try\n\nwith". :-) It means "push CTRL-c then CTRL-c" is a shortcut for "M-x caml-types-show-types" (you did C-ct). ChriS