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 RAA29511; Tue, 19 Mar 2002 17:35:39 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA29619 for caml-list@pauillac.inria.fr; Tue, 19 Mar 2002 17:35:38 +0100 (MET) 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 JAA19536 for ; Tue, 19 Mar 2002 09:48:11 +0100 (MET) Received: from morgon.inria.fr (morgon.inria.fr [128.93.8.33]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g2J8m4D19783; Tue, 19 Mar 2002 09:48:04 +0100 (MET) Received: (from remy@localhost) by morgon.inria.fr (8.11.6/8.11.6) id g2J8mpW26404; Tue, 19 Mar 2002 09:48:51 +0100 To: andrieu@ijm.jussieu.fr Cc: caml-list@inria.fr Subject: Re: [Caml-list] caml-info-look References: <15510.30846.279541.62235@karryall.nerim.net> From: Didier Remy Date: 19 Mar 2002 09:48:50 +0100 In-Reply-To: <15510.30846.279541.62235@karryall.nerim.net> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk andrieu@ijm.jussieu.fr writes: > Hello, > > I wrote a small Emacs-lisp library for automatically looking up > documentation in OCaml Info files. It's to be used with Info files > generated by OCamldoc (using the texinfo generator). > > Calling `caml-info-lookup-id' in a caml-mode buffer on an identifier > (say, String.length) will open an Info window and display the relevant > Info node, with the type and commentary that goes with the identifier. > > I don't write much elisp so the code looks a bit hideous but it seems > to work (at least for my Emacs 20.7, I don't know for XEmacs). > > http://oandrieu.nerim.net/ocaml/caml-info-look.el There is already module caml-help.el (since 3.04) in the emacs distrib part of caml.el that could already do that. Have you tried it? It can be parameterized to look for documentation in either standard or ocamldoc info stylles, or just in the stdlib, which is often the most convenient. It does completion on (toplevel) Module names and identifiers bound in these modules. Didier ------------------- 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