From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA04932 for caml-redistribution; Tue, 9 Mar 1999 08:42:23 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA28254 for ; Mon, 8 Mar 1999 17:46:33 +0100 (MET) Received: from mailserver.cli.di.unipi.it (alice.cli.di.unipi.it [131.114.11.37]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id RAA29826 for ; Mon, 8 Mar 1999 17:46:30 +0100 (MET) Organization: Centro di Calcolo - Dipartimento di Informatica di Pisa - Italy Received: from fire.cli.di.unipi.it (fire-ext.cli.di.unipi.it [131.114.11.52]) by mailserver.cli.di.unipi.it (8.9.1a/8.9.1) with SMTP id RAA26715 for ; Mon, 8 Mar 1999 17:46:26 +0100 (MET) Received: (qmail 1527 invoked by uid 7794); 8 Mar 1999 15:46:24 -0000 Received: from carlotta.cli.di.unipi.it(131.114.11.15) via SMTP by alice.cli.di.unipi.it, id smtpda01460; Mon Mar 8 16:44:21 1999 Received: (bernardp@localhost) by carlotta.cli.di.unipi.it (8.8.5/8.6.12) id RAA08386; Mon, 8 Mar 1999 17:44:16 +0100 (MET) Date: Mon, 8 Mar 1999 17:44:16 +0100 (MET) Message-Id: <199903081644.RAA08386@carlotta.cli.di.unipi.it> From: Pierpaolo Bernardi To: caml-list@inria.fr Subject: Browsing docs & caml.el. Sender: weis The elisp function ocaml-refman-fontificato below is what I used to use to browse ocaml docs. In my experience, this is order of magnitude faster than using a web browser with the html docs. This code uses the function Man-fontify-manpage which is not documented. It works in GNU Emacs 19.34. (if (string-match "XEmacs" emacs-version) (defun sposta-il-cursore-fuori () (interactive) (set-mouse-pixel-position (frame-root-window) 30 ;(- (frame-pixel-width) 50) -45)) (defun sposta-il-cursore-fuori () (interactive) (set-mouse-position (window-frame (frame-selected-window)) (1+ (frame-width)) 0)) ) (defun find-file-read-only-other-frame-fontificato (filename) (interactive "fFile to view: ") (require 'man) (find-file-read-only-other-frame filename) (toggle-read-only) (Man-fontify-manpage) (not-modified) (toggle-read-only)) (defun ocaml-refman-fontificato () (interactive) (find-file-read-only-other-frame-fontificato "/usr/local/lib/ocaml/Doc/ocaml-refman.prn") (sposta-il-cursore-fuori)) ================================================================ Also, there's a little bug in caml.el. Patch follows. *** caml.el.~1~ Sat Mar 6 01:04:05 1999 --- caml.el Sat Mar 6 01:09:26 1999 *************** *** 619,625 **** ;; This function switches to monobyte mode (if (not (fboundp 'char-bytes)) ! (defalias forward-byte forward-char) (defun caml-char-bytes (ch) (let ((l (char-bytes ch))) (if (> l 1) (- l 1) l))) --- 619,625 ---- ;; This function switches to monobyte mode (if (not (fboundp 'char-bytes)) ! (defalias 'forward-byte 'forward-char) (defun caml-char-bytes (ch) (let ((l (char-bytes ch))) (if (> l 1) (- l 1) l))) ================================================================ Best regards, Pierpaolo Bernardp