From: Pascal Brisset <pascal.brisset@cnet.francetelecom.fr>
To: caml-list@inria.fr
Subject: Emacs mode with typing for ocaml
Date: Wed, 17 Mar 1999 15:44:39 +0100 (MET) [thread overview]
Message-ID: <14063.49111.124608.141929@lsun162.cnet> (raw)
A new Emacs mode is available for testing at :
http://perso.wanadoo.fr/pascal.brisset/OcamlIT/
Extracts from the README follow.
OVERVIEW
CamlIT (Caml Interactive Typing) is yet another emacs mode for
Objective Caml source files. It runs a toplevel in the background in
order to obtain typing information about definitions and all their
subexpressions, including function arguments and patterns. This is
especially useful when examining complex third-party source files.
INSTALLATION
Requires Objective Caml 2.01 or 2.02. Tested on Linux and Solaris
with GNU emacs 20.2.1 and XEmacs 20.4.
Put camlit.el in your emacs load-path and add to your .emacs:
(autoload 'camlit-minor-mode "camlit" "Caml Interactive Typing" t)
Alternatively, just load camlit.el manually with [M-x load-file].
USAGE
- [M-x camlit-minor-mode] enables CamlIT.
- [C-t C-t] shows the full name (if relevant) and type of the Caml
expression at the cursor location. Multiple invocations enlarge
the scope to the enclosing syntactic expression.
- [C-t C-k] resets the toplevel (recovers from inconsistent states).
CAVEATS
- CamlIT actually executes your Caml code. It should be used only on
files which contain definitions without unwanted side-effects.
- CamlIT uses type-unsafe tricks to interface with the toplevel (the
point is, you don't have to recompile anything). This may cause
crashes and other dangerous effects, especially if you are not
running either the standard toplevel or a toplevel generated by
ocamlmktop.
ACKNOWLEDGEMENTS
The features of CamlIT were inspired by several existing works on
structured editors and proof assistants.
- Pascal Brisset <pascal.brisset@cnet.francetelecom.fr> +33296051928 -
- France Telecom CNET DTL/MSV | 2 av Pierre Marzin | F-22307 Lannion -
reply other threads:[~1999-03-17 21:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14063.49111.124608.141929@lsun162.cnet \
--to=pascal.brisset@cnet.francetelecom.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox