caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] caml-info-look
@ 2002-03-18 23:30 andrieu
  2002-03-19  8:48 ` Didier Remy
  0 siblings, 1 reply; 4+ messages in thread
From: andrieu @ 2002-03-18 23:30 UTC (permalink / raw)
  To: caml-list

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

-- 
   Olivier

-------------------
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] caml-info-look
  2002-03-18 23:30 [Caml-list] caml-info-look andrieu
@ 2002-03-19  8:48 ` Didier Remy
  2002-03-19  9:12   ` Olivier Andrieu
  0 siblings, 1 reply; 4+ messages in thread
From: Didier Remy @ 2002-03-19  8:48 UTC (permalink / raw)
  To: andrieu; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] caml-info-look
  2002-03-19  8:48 ` Didier Remy
@ 2002-03-19  9:12   ` Olivier Andrieu
  2002-03-19 16:44     ` Didier Remy
  0 siblings, 1 reply; 4+ messages in thread
From: Olivier Andrieu @ 2002-03-19  9:12 UTC (permalink / raw)
  To: Didier Remy; +Cc: caml-list

 Didier Remy [ 19 March 2002] :
 > 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?

No, I hadn't noticed it. But it's not installed by the install target
of the Makefile. Maybe that should be fixed. 

-- 
   Olivier
-------------------
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] caml-info-look
  2002-03-19  9:12   ` Olivier Andrieu
@ 2002-03-19 16:44     ` Didier Remy
  0 siblings, 0 replies; 4+ messages in thread
From: Didier Remy @ 2002-03-19 16:44 UTC (permalink / raw)
  To: Olivier Andrieu; +Cc: caml-list

Olivier Andrieu <andrieu@ijm.jussieu.fr> writes:

>  Didier Remy [ 19 March 2002] :

> But it's not installed by the install target
> of the Makefile. Maybe that should be fixed. 

Yes, this was a mistake. It has just been fixed by Jacques Garrigue.

        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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-03-19 16:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-18 23:30 [Caml-list] caml-info-look andrieu
2002-03-19  8:48 ` Didier Remy
2002-03-19  9:12   ` Olivier Andrieu
2002-03-19 16:44     ` Didier Remy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).