X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fmatita.ml;h=db0fd2b18e7ec0be350aecbea58d29dc16745933;hb=ad0292419b0204384ff55c946a6aabb73a47c42b;hp=6319921eb75710fe16633c84b74b28238513bf67;hpb=6b5e1d495c61f459738187e8d71efadb162abdbe;p=helm.git diff --git a/helm/matita/matita.ml b/helm/matita/matita.ml index 6319921eb..db0fd2b18 100644 --- a/helm/matita/matita.ml +++ b/helm/matita/matita.ml @@ -73,7 +73,7 @@ let _ = let script = MatitaScript.script - ~buffer:gui#sourceView#buffer + ~view:(gui#sourceView :> GText.view) ~init:(Lazy.force MatitaEngine.initial_status) ~mathviewer:(MatitaMathView.mathViewer ()) ~urichooser:(fun uris -> @@ -156,23 +156,16 @@ let _ = if script#onGoingProof () then MatitaLog.debug (CicMetaSubst.ppmetasenv script#proofMetasenv [])); addDebugItem "dump coercions Db" (fun _ -> - List.iter ( - fun (s,t,u) -> - MatitaLog.debug ( - UriManager.name_of_uri u ^ ":" ^ - UriManager.name_of_uri s ^ " -> " ^ UriManager.name_of_uri t)) - (CoercDb.to_list ()) - ); + List.iter + (fun (s,t,u) -> + MatitaLog.debug + (UriManager.name_of_uri u ^ ":" + ^ UriManager.name_of_uri s ^ " -> " ^ UriManager.name_of_uri t)) + (CoercDb.to_list ())); addDebugItem "rotate light bulbs" (fun _ -> let nb = gui#main#hintNotebook in - nb#goto_page ((nb#current_page + 1) mod 3)); - (* - addDebugItem "print (on stdout) \"statement\" grammar entry" - (fun _ -> - Grammar.print_entry Format.std_formatter - (Grammar.Entry.obj CicTextualParser2.statement); - Format.pp_print_flush Format.std_formatter ());*) + nb#goto_page ((nb#current_page + 1) mod 3)) end (** *)