# HG changeset patch # User wenzelm # Date 1014928307 -3600 # Node ID b6db96775e5204bcd1be3de06208f6002f471256 # Parent 58cd2ca93edced9bf72121e2d71be7b9799a56a3 use ignore_interrupt, raise_interrupt; diff -r 58cd2ca93edc -r b6db96775e52 src/Pure/Isar/toplevel.ML --- a/src/Pure/Isar/toplevel.ML Thu Feb 28 21:31:13 2002 +0100 +++ b/src/Pure/Isar/toplevel.ML Thu Feb 28 21:31:47 2002 +0100 @@ -187,7 +187,7 @@ fun interruptible f x = let val y = ref (None: node History.T option); - in exhibit_interrupt (fn () => y := Some (f x)) (); the (! y) end; + in raise_interrupt (fn () => y := Some (f x)) (); the (! y) end; val rollback = ERROR_MESSAGE "Stale signature encountered after succesful execution!"; @@ -254,7 +254,7 @@ | apply_tr _ Kill (State None) = raise UNDEF | apply_tr _ Kill (State (Some (node, (_, kill)))) = (kill (History.current node); State None) - | apply_tr int (Keep f) state = (exhibit_interrupt (f int) state; state) + | apply_tr int (Keep f) state = (raise_interrupt (f int) state; state) | apply_tr _ (History _) (State None) = raise UNDEF | apply_tr _ (History f) (State (Some (node, term))) = State (Some (f node, term)) | apply_tr int (MapCurrent f) state = node_trans int false f state @@ -499,7 +499,7 @@ | Some (Some (tr, src')) => if >> tr then raw_loop src' else ()); -fun loop src = mask_interrupt raw_loop src; +fun loop src = ignore_interrupt raw_loop src; end;