equal
deleted
inserted
replaced
176 (case get_result node of |
176 (case get_result node of |
177 SOME eval => Command.eval_finished eval |
177 SOME eval => Command.eval_finished eval |
178 | NONE => false); |
178 | NONE => false); |
179 |
179 |
180 fun loaded_theory name = |
180 fun loaded_theory name = |
181 (case try (unsuffix ".thy") name of |
181 get_first Thy_Info.lookup_theory [name, Long_Name.base_name name]; |
182 SOME a => get_first Thy_Info.lookup_theory [a, Long_Name.base_name a] |
|
183 | NONE => NONE); |
|
184 |
182 |
185 fun get_node nodes name = String_Graph.get_node nodes name |
183 fun get_node nodes name = String_Graph.get_node nodes name |
186 handle String_Graph.UNDEF _ => empty_node; |
184 handle String_Graph.UNDEF _ => empty_node; |
187 fun default_node name = String_Graph.default_node (name, empty_node); |
185 fun default_node name = String_Graph.default_node (name, empty_node); |
188 fun update_node name f = default_node name #> String_Graph.map_node name f; |
186 fun update_node name f = default_node name #> String_Graph.map_node name f; |