]> matita.cs.unibo.it Git - helm.git/commitdiff
Bug fixed: variable capture in previous commit prevented all aliases insertion.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 20 Apr 2009 02:26:10 +0000 (02:26 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 20 Apr 2009 02:26:10 +0000 (02:26 +0000)
helm/software/matita/matitaEngine.ml

index 75c3ebafc5d946b3540157992874b14853c14283..5468c863a97f8ac1af856d9f17b7cde2aa850257 100644 (file)
@@ -81,7 +81,7 @@ let eval_ast ?do_heavy_checks lexicon_status
    ~disambiguate_command:(wrap (disambiguate_command lexicon_status_ref))
    ~disambiguate_macro:(wrap (disambiguate_macro lexicon_status_ref))
    ?do_heavy_checks grafite_status (text,prefix_len,ast) in
- let lexicon_status =
+ let new_lexicon_status =
   if !changed_lexicon then
    !lexicon_status_ref
   else
@@ -90,7 +90,7 @@ let eval_ast ?do_heavy_checks lexicon_status
    | GrafiteTypes.ProofMode s -> s.NTacStatus.istatus.NTacStatus.lstatus
  in
  let new_lexicon_status =
-  LexiconSync.add_aliases_for_objs lexicon_status new_objs in
+  LexiconSync.add_aliases_for_objs new_lexicon_status new_objs in
  let new_aliases =
   LexiconSync.alias_diff ~from:lexicon_status new_lexicon_status in
  let _,intermediate_states =