Version française
Home     About     Download     Resources     Contact us    
Browse thread
[ANN] OCamlSpotter: OCaml compiler extension for source browsing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] [ANN] OCamlSpotter: OCaml compiler extension for source browsing
>> I have written a small compiler patch called ocamlspotter. It extends
>> -annot option and records all the variable definition locations, so
>> that we can jump from variable uses to their definitions easily from
>> editors such as emacs.
> 
> You have completely blown my mind.  I was thinking about this very
> idea about 10 minutes ago in my car, and *blam* there it is.  I should
> think about some other, more profitable ideas...
> 
> I would suggest submitting this as a patch for inclusion.  I've heard
> there are going to be enhancements to the .annot format in 3.11 so
> it's not unprecedented.

>From what I've heard, there's also an OCaml summer of code project
that enriched the info found in .annot files.  So, it's certainly time
to discuss extensions to .annot files, but let's do that globally, not
one at a time.  It is probably too late for inclusion in 3.11, but as
long as these extensions are backward compatible, inclusion in bugfix
releases can be considered.

- Xavier Leroy