equal
deleted
inserted
replaced
687 |
687 |
688 fun print_consolidation options the_command_span node_name (assign_update, node) = |
688 fun print_consolidation options the_command_span node_name (assign_update, node) = |
689 (case finished_result_theory node of |
689 (case finished_result_theory node of |
690 SOME (result_id, thy) => |
690 SOME (result_id, thy) => |
691 let |
691 let |
692 val eval_ids = |
692 val active_tasks = |
693 iterate_entries (fn (_, opt_exec) => fn eval_ids => |
693 (node, false) |-> iterate_entries (fn (_, opt_exec) => fn active => |
694 (case opt_exec of |
694 if active then NONE |
695 SOME (eval, _) => SOME (cons (Command.eval_exec_id eval) eval_ids) |
695 else |
696 | NONE => NONE)) node []; |
696 (case opt_exec of |
|
697 NONE => NONE |
|
698 | SOME (eval, _) => |
|
699 SOME (not (null (Execution.snapshot [Command.eval_exec_id eval]))))); |
697 in |
700 in |
698 if null (Execution.snapshot eval_ids) then |
701 if not active_tasks then |
699 let |
702 let |
700 val consolidation = |
703 val consolidation = |
701 if Options.bool options "editor_presentation" then |
704 if Options.bool options "editor_presentation" then |
702 let |
705 let |
703 val (_, offsets, rev_segments) = |
706 val (_, offsets, rev_segments) = |