# HG changeset patch # User wenzelm # Date 1163275992 -3600 # Node ID bfcc24fc7c46d46f11aa46f6e198a5bdada25d5f # Parent 367f4512e65ccbc45398972b4b5a47aca34d6121 level: do not account for local theory blocks (relevant for document preparation); diff -r 367f4512e65c -r bfcc24fc7c46 src/Pure/Isar/toplevel.ML --- a/src/Pure/Isar/toplevel.ML Sat Nov 11 21:13:11 2006 +0100 +++ b/src/Pure/Isar/toplevel.ML Sat Nov 11 21:13:12 2006 +0100 @@ -161,10 +161,9 @@ fun level (State NONE) = 0 | level (State (SOME (node, _))) = (case History.current node of - Theory (Context.Theory _, _) => 0 - | Theory (Context.Proof _, _) => 1 - | Proof (prf, _) => Proof.level (ProofHistory.current prf) + 1 - | SkipProof (h, _) => History.current h + 2); (*different notion of proof depth!*) + Theory _ => 0 + | Proof (prf, _) => Proof.level (ProofHistory.current prf) + | SkipProof (h, _) => History.current h + 1); (*different notion of proof depth!*) fun str_of_state (State NONE) = "at top level" | str_of_state (State (SOME (node, _))) =