From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id BAA15976; Thu, 8 Aug 2002 01:51:28 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA16026 for ; Thu, 8 Aug 2002 01:51:24 +0200 (MET DST) Received: from favie.faith.gr.jp (favie.faith.gr.jp [61.127.175.250]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g77NpB524170 for ; Thu, 8 Aug 2002 01:51:14 +0200 (MET DST) Received: from localhost (dhcp7.faith.gr.jp [192.168.1.17]) by favie.faith.gr.jp (8.9.3/8.9.3) with ESMTP id IAA03829; Thu, 8 Aug 2002 08:51:09 +0900 To: yangsx@fltrp.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocaml-mode-3.05 In-Reply-To: <3D50B61E.2090204@fltrp.com> References: <20020807091842P.garrigue@kurims.kyoto-u.ac.jp> <3D50AF3E.8965A1DE@quasar.ipa.nw.ru> <3D50B61E.2090204@fltrp.com> X-Mailer: Mew version 1.94.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020808085059U.garrigue@kurims.kyoto-u.ac.jp> Date: Thu, 08 Aug 2002 08:50:59 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: Yang Shouxun > True. For instance, I'd rather an indentation for every consecutive > "let...", as in the Lisp style (I learned Scheme and Common Lisp before > Ocaml). That is, I prefer indentation to graphically show the structure > of the code, even at the risk of being stretched too much to the right. > With higher resolution of graphic displays and more careful organization > of the code, I guess the problem may be less imposing. This is mostly a question of taste: I view most of the let's as assignment, so I prefer not to indent them, since they do no more than changing a binding. But lots of people would disagree. By the way, you can customize this in ocaml-mode too: (setq caml-let-in-indent 2) The default is 0, meaning no indent. On the other hand, not everything is customizable, and even when customizable it may be a pain. For instance, I never came around to allow a global change in the size of indentation: this is 2, or you have to change it individually for every construct... > I'm using tuareg for it allows me to run ocaml toplevel in emacs. I'm > not sure the ocaml-mode has such functionality. Let's stop such blaring disinformation: running the ocaml toplevel under emacs was the original goal of the caml mode, and this already worked more than 10 years ago. Thanks to Didier it is now pretty clever about errors, but then Tuareg might be just as clever. Jacques Garrigue ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners