Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Re: Redefinition doesn't work
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-11-11 (16:09)
From: Remi VANICAT <remi.vanicat@l...>
Subject: Re: Good programming languages (Was: Redefinition doesn't work)
"Juan J. Quintela" <> writes:

> >>>>> "markus" == Markus Mottl <> writes:
> markus> On Fri, 03 Nov 2000, wrote:
> >> I find that Emacs is an excellent tool for searching for functions in
> >> the OCaml library.  The developers have helpfully provided a pure-ascii
> >> version of the documentation, and a couple of incremental searches
> >> usually gets me to what I want in a few second.
> markus> VIM-users might want to put the following function definition into their
> markus> .bashrc-file:
> markus>   function ocdoc () { command vim -R $OCAMLLIBPATH/$1; }
> markus> where $OCAMLLIBPATH is set to the location of the library directory. A
> markus> simple e.g. "ocdoc list.mli" (or also "ocdoc") on the command
> markus> line will display the nicely highlighted code in a shell window (starting
> markus> up Emacs in a similar way is just too slow :-)
> Have you ever heard of emacsclient????

why use emacsclient ? if you use emacs, you can do an Emacs command to
do the work, after all, are'nt you making your job in Emacs ?

say :
(defun ocdoc (lib) (interactive "sThe library file: ")
        (view-file (concat ocaml-library-path lib)))
(suposed that the emacs variable ocaml-lib-path is already set.)

and the M-x ocdoc will do the job...

Tuareg already have a similar binding
Rémi Vanicat