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 IAA11735; Fri, 9 Jan 2004 08:21:02 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA11780 for ; Fri, 9 Jan 2004 08:21:01 +0100 (MET) Received: from tornado.force (cs1-ats25-dzer-216.dialup.mts-nn.ru [213.177.121.216]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id i097Kx511302 for ; Fri, 9 Jan 2004 08:20:59 +0100 (MET) Received: from tornado.force (tornado.force [127.0.0.1]) by tornado.force (8.12.10/8.12.10) with ESMTP id i097R5ed001771; Fri, 9 Jan 2004 10:27:06 +0300 Received: (from kamil@localhost) by tornado.force (8.12.10/8.12.10/Submit) id i097R4ex001767; Fri, 9 Jan 2004 10:27:04 +0300 X-Authentication-Warning: tornado.force: kamil set sender to kamils@inbox.ru using -f X-Comment-To: Jérôme Marant To: Jérôme Marant Cc: caml-list@inria.fr Subject: Re: [Caml-list] Tuareg References: <20040107.080831.45142237.ipcastillon@prodigy.net.mx> <20040108151357.A25186@mailhost> <1073573164.3ffd6d2c77231@imp3-a.free.fr> Organization: niimash From: Kamil Shakirov Date: Fri, 09 Jan 2004 10:27:04 +0300 In-Reply-To: <1073573164.3ffd6d2c77231@imp3-a.free.fr> (Jérôme Marant's message of "Thu, 8 Jan 2004 15:46:04 +0100") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 tuareg:01 jerome:01 jerome:01 marant:01 jmarant:01 tuareg:01 chunks:01 foo:01 foo:01 int:01 int:01 writes:01 maintainers:02 binding:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello Jérôme, Jérôme Marant writes: >> > I meant `folding' --- hiding parts of the edited program. Probably you >> > did not understand me because my english is not good. ;) >> > >> > Anyway, thank you for your answer. >> > >> > I have found similar minor edit mode (hideshow.el, hs-minor-mode for >> > block hiding and showing) but it is for c-mode. It would be nice >> > implement this in tuareg mode. >> >> Thanks for the suggestion, I'll take a look to hideshow.el to see >> if it can be customized and reused within Tuareg. > > There's also a folding.el mode around, which is not bad at all. I know about this minor mode. But I want to hide only a body of function except a header (let binding). This is note from the folding.el file: ;; Please note, that the maintainers do not recommend to use only ;; folding for you your code layout and navigation. Folding.el is on ;; its best when it can "chunk" large sections of code inside ;; folds. The larger the chunks, the more the usability of folding will ;; increase. Folding.el is not meant to hide individual functions: you ;; may be better served by hideshow.el or imenu.el (which can parse ;; the function indexes) And I agree with above note. This is my example code with special fold markers: let foo a b c = (* {{{ *) List.iter (fun x -> x*a + x*b + x*c) (* }}} *) Folding mode works fine: let foo a b c = (* {{{ *) ... But the code looks ugly. ;) It would be nice if above code would look like this (when folding mode is enabled): let foo a b c = int -> int -> int -> int list -> int list -- Kamil. ------------------- 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