equal
deleted
inserted
replaced
174 emacs_notify ("Proof General, theorem dependencies of " ^ thms ^ " are " ^ deps); |
174 emacs_notify ("Proof General, theorem dependencies of " ^ thms ^ " are " ^ deps); |
175 |
175 |
176 in |
176 in |
177 |
177 |
178 fun setup_present_hook () = Toplevel.add_hook (fn _ => fn state => fn state' => |
178 fun setup_present_hook () = Toplevel.add_hook (fn _ => fn state => fn state' => |
179 if print_mode_active thm_depsN andalso Toplevel.is_theory state' then |
179 if print_mode_active thm_depsN andalso |
|
180 can Toplevel.theory_of state andalso Toplevel.is_theory state' |
|
181 then |
180 let val (names, deps) = |
182 let val (names, deps) = |
181 ProofGeneralPgip.new_thms_deps (Toplevel.theory_of state) (Toplevel.theory_of state') |
183 ProofGeneralPgip.new_thms_deps (Toplevel.theory_of state) (Toplevel.theory_of state') |
182 in |
184 in |
183 if null names orelse null deps then () |
185 if null names orelse null deps then () |
184 else thm_deps_message (spaces_quote names, spaces_quote deps) |
186 else thm_deps_message (spaces_quote names, spaces_quote deps) |