equal
deleted
inserted
replaced
136 let |
136 let |
137 val name = thy_name file; |
137 val name = thy_name file; |
138 val _ = name = "" andalso error ("Bad file name: " ^ quote file); |
138 val _ = name = "" andalso error ("Bad file name: " ^ quote file); |
139 val _ = |
139 val _ = |
140 if Thy_Info.known_thy name then |
140 if Thy_Info.known_thy name then |
141 (Thy_Info.register_thy name (Toplevel.end_theory Position.none (Isar.state ())); |
141 Thy_Info.register_thy (Toplevel.end_theory Position.none (Isar.state ())) |
142 Thy_Info.touch_child_thys name) |
|
143 handle ERROR msg => |
142 handle ERROR msg => |
144 (warning (cat_lines ["Failed to register theory: " ^ quote name, msg]); |
143 (warning (cat_lines ["Failed to register theory: " ^ quote name, msg]); |
145 tell_file_retracted (Thy_Header.thy_path name)) |
144 tell_file_retracted (Thy_Header.thy_path name)) |
146 else (); |
145 else (); |
147 val _ = Isar.init (); |
146 val _ = Isar.init (); |