src/Pure/PIDE/document.ML
changeset 47342 7828c7b3c143
parent 47341 00f6279bb67a
child 47343 b8aeab386414
     1.1 --- a/src/Pure/PIDE/document.ML	Thu Apr 05 11:58:46 2012 +0200
     1.2 +++ b/src/Pure/PIDE/document.ML	Thu Apr 05 13:01:54 2012 +0200
     1.3 @@ -226,7 +226,7 @@
     1.4          in Graph.map_node name (set_header header'') nodes3 end
     1.5          |> touch_node name
     1.6      | Perspective perspective =>
     1.7 -        update_node name (set_perspective perspective) nodes);
     1.8 +        update_node name (set_perspective perspective #> set_touched true) nodes);
     1.9  
    1.10  end;
    1.11  
    1.12 @@ -337,8 +337,8 @@
    1.13            SOME thy => thy
    1.14          | NONE =>
    1.15              Toplevel.end_theory (Position.file_only import)
    1.16 -              (fst (Exn.release (Command.memo_result
    1.17 -                (get_result (snd (Future.join (the (AList.lookup (op =) deps import))))))))));
    1.18 +              (fst (Command.memo_eval  (* FIXME memo_result !?! *)
    1.19 +                (get_result (snd (Future.join (the (AList.lookup (op =) deps import)))))))));
    1.20    in Thy_Load.begin_theory master_dir header parents end;
    1.21  
    1.22  fun check_theory nodes name =
    1.23 @@ -396,7 +396,7 @@
    1.24              |> modify_init
    1.25              |> Toplevel.put_id exec_id'_string);
    1.26        val exec' = Command.memo (fn () =>
    1.27 -        let val (st, _) = Exn.release (Command.memo_result (snd (snd command_exec)));
    1.28 +        let val (st, _) = Command.memo_result (snd (snd command_exec));
    1.29          in Command.run_command (tr ()) st end);
    1.30        val command_exec' = (command_id', (exec_id', exec'));
    1.31      in SOME (command_exec' :: execs, command_exec', init') end;
    1.32 @@ -486,7 +486,7 @@
    1.33        fun force_exec _ _ NONE = ()
    1.34          | force_exec node command_id (SOME (_, exec)) =
    1.35              let
    1.36 -              val (_, print) = Exn.release (Command.memo_result exec);
    1.37 +              val (_, print) = Command.memo_eval exec;
    1.38                val _ =
    1.39                  if #1 (get_perspective node) command_id
    1.40                  then ignore (Lazy.future Future.default_params print)