OCaml Forge
SCM

Detail: [#816] Symbol's function definition is void: nil

Bugs: Browse | Download .csv | Monitor

[#816] Symbol's function definition is void: nil

Date:
2010-11-28 04:56
Priority:
3
State:
Closed
Submitted by:
Jacques Le Normand (palomer)
Assigned to:
Nobody (None)
Hardware:
None
Resolution:
Fixed
Severity:
None
Version:
None
Component:
None
Operating System:
None
Product:
None
 
URL:
Summary:
Symbol's function definition is void: nil

Detailed description
The following code will not indent properly:

==begin==

let run ?f doc =
if ch = Key.down then down ()
else if ch = Key.up then up ()

==end==

When trying to indent I get the following error:

Symbol's function definition is void: nil

I think tuareg somehow thinks that "down" is a keyword

Followup

Message
Date: 2011-12-08 19:59
Sender: Christophe Troestler

New indentation code is present under SVN which corrects this. Please test with

(setq tuareg-use-smie t)

in your ~/.emacs
Date: 2010-11-28 04:57
Sender: Jacques Le Normand

same for:

let down () =
let rec loop x =

Attached Files:

Changes:

Field Old Value Date By
status_idOpen2013-08-16 12:36chris
close_dateNone2013-08-16 12:36chris
ResolutionNone2013-08-16 12:36chris