;****************************************** -*- lexical-binding: t; -*- ***
;* *
;* OCaml *
;* *
;* Xavier Leroy and Jacques Garrigue *
;* *
;* Copyright 1997 Institut National de Recherche en Informatique et *
;* en Automatique. *
;* *
;* All rights reserved. This file is distributed under the terms of *
;* the GNU General Public License. *
;* *
;**************************************************************************
;;; inf-caml.el --- run the OCaml toplevel in an Emacs buffer
;; Xavier Leroy, july 1993.
;; modified by Jacques Garrigue, july 1997.
;; User modifiable variables
;; Whether you want the output buffer to be displayed when you send a phrase
;; End of User modifiable variables
;; Augment Caml mode, so you can process OCaml code in the source files.
;; for compatibility with xemacs
;; To show result of evaluation at toplevel
;; FIXME: Why not put that directly in the major mode function?
;; To launch ocaml whenever needed
;; patched to from original run-caml sharing code with
;; caml-run-process-when-needed
;; patched by Didier to move cursor after evaluation
;; jump to errors produced by ocaml compiler
;;; original inf-caml.el ended here
;; as eval-phrase, but ignores errors.
;; enriched version of eval-phrase, to report errors.
;; wait some amount for output, that is, until inferior-caml-output is set
;; to true. Hence, interleaves sitting for shorts delays and checking the
;; flag. Give up after some time. Typing into the source buffer will cancel
;; waiting, i.e. may report 'No result yet'
;; To insert the last output from caml at point
;; additional bindings
;(let ((map (lookup-key caml-mode-map [menu-bar caml])))
; (define-key map [indent-buffer] '("Indent buffer" . caml-indent-buffer))
; (define-key map [eval-buffer] '("Eval buffer" . caml-eval-buffer))
;)
;(define-key caml-mode-map "\C-c\C-b" 'caml-eval-buffer)