English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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" <quintela@fi.udc.es> writes:

> >>>>> "markus" == Markus Mottl <mottl@miss.wu-wien.ac.at> writes:
> markus> On Fri, 03 Nov 2000, bcpierce@cis.upenn.edu 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 list.ml") 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