inform_file_processed: try harder not to fail, ensure
authorwenzelm
Mon, 14 Jul 2008 19:57:13 +0200
changeset 27585 2234ace5b538
parent 27584 e0cd0396945a
child 27586 b3b6c581c3f9
inform_file_processed: try harder not to fail, ensure
src/Pure/ProofGeneral/proof_general_emacs.ML
--- a/src/Pure/ProofGeneral/proof_general_emacs.ML	Mon Jul 14 19:57:11 2008 +0200
+++ b/src/Pure/ProofGeneral/proof_general_emacs.ML	Mon Jul 14 19:57:13 2008 +0200
@@ -137,17 +137,16 @@
 
 fun inform_file_processed file =
   let
+    val _ = Isar.init_point ();
     val name = thy_name file;
     val _ = name = "" andalso error ("Bad file name: " ^ quote file);
     val _ =
       if ThyInfo.check_known_thy name then
-        (Isar.commit_exit ();
-          ThyInfo.touch_child_thys name;
-          ThyInfo.register_thy name handle ERROR msg =>
+        (Isar.commit_exit (); ThyInfo.touch_child_thys name; ThyInfo.register_thy name)
+          handle ERROR msg =>
             (warning (cat_lines [msg, "Failed to register theory: " ^ quote name]);
-             tell_file_retracted (ThyLoad.thy_path name)))
+              tell_file_retracted (ThyLoad.thy_path name))
       else ();
-    val _ = Isar.init_point ();
   in () end;