From: John Prevost <j.prevost@gmail.com>
To: caml <caml-list@inria.fr>
Subject: Re: [Caml-list] XEmacs or GNU Emacs?
Date: Mon, 9 Aug 2004 10:35:59 -0400 [thread overview]
Message-ID: <d849ad2a04080907357900c63e@mail.gmail.com> (raw)
In-Reply-To: <20040809110600.06BD557251@twix.cs.brown.edu>
On Mon, 9 Aug 2004 13:06:04 +0200, John Hughes <jfh@cs.brown.edu> wrote:
> Ocaml 3.07: compiled from sources under Linux,
> Cygwin port for XP, because we want to use the debugger
>
> GNU Emacs + tuareg for both platforms
>
> ocamldebug on both platforms
>
> Two questions:
>
> * Does this sound reasonable to you experts?
>
> * Does anyone else out there wish that ml mode in Emacs had a "kill
> the current ML process and restart a fresh one, and then evaluate my
> buffer in that new, fresh, clean process?"
That sounds handy--but the handiest recent new feature for teaching
that I've seen is the stuff with -dtypes in the caml-mode that's
distributed with O'Caml 3.08. You can hit C-c C-t to get the type of
the expression under point, or middle-click in the emacs buffer to
highlight the entire top-level expression in one color, and highlight
the smallest expression under the mouse in another color, while
displaying the type of that smaller expression in the mode-line. (In
other words, you can drag around with the middle button in a single
top-level expression, displaying the type of what you're hovering
over.)
This works even when a file has not compiled cleanly: the compiler
type annotation file includes all of the types it's figured out up
until the spot where it found a conflict. And that can be a great
help when trying to figure out why a problem happened.
John.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2004-08-09 14:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-30 19:35 Brandon J. Van Every
2004-07-30 20:03 ` John Prevost
2004-07-30 22:08 ` Konstantin Ignatiev
2004-07-31 3:04 ` Brandon J. Van Every
2004-08-07 9:14 ` Michael Sperber
2004-08-07 10:28 ` Jérôme Marant
2004-08-09 9:46 ` Benjamin Geer
2004-08-09 11:06 ` John Hughes
2004-08-09 14:35 ` John Prevost [this message]
2004-08-09 17:42 ` Christopher Dutchyn
2004-08-09 23:29 ` Christopher A. Watford
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=d849ad2a04080907357900c63e@mail.gmail.com \
--to=j.prevost@gmail.com \
--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