[status, parsed_text], "", parsed_text_length
| TA.NCheck (_,t) ->
let status = script#grafite_status in
- let ctx = [] in
+ let _,_,menv,subst,_ = status#obj in
+ let ctx =
+ try let _,(_,ctx,_) = List.hd menv in ctx
+ with Failure "hd" -> []
+ in
let m, s, status, t =
GrafiteDisambiguate.disambiguate_nterm
- None status [] [] ctx (parsed_text,parsed_text_length,
+ None status ctx menv subst (parsed_text,parsed_text_length,
CicNotationPt.Cast (t,CicNotationPt.Implicit `JustOne))
(* XXX use the metasenv, if possible *)
in