Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] caml-info-look
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Didier Remy <remy@m...>
Subject: Re: [Caml-list] caml-info-look
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