src/Pure/General/markup.ML
changeset 23922 707639e9497d
parent 23794 ab2edd87b912
child 24289 bfd59eb6e24e
--- a/src/Pure/General/markup.ML	Mon Jul 23 14:06:11 2007 +0200
+++ b/src/Pure/General/markup.ML	Mon Jul 23 14:06:12 2007 +0200
@@ -163,8 +163,8 @@
   val default = {output = default_output};
   val modes = ref (Symtab.make [("", default)]);
 in
-  fun add_mode name output =
-    change modes (Symtab.update_new (name, {output = output}));
+  fun add_mode name output = CRITICAL (fn () =>
+    change modes (Symtab.update_new (name, {output = output})));
   fun get_mode () =
     the_default default (Library.get_first (Symtab.lookup (! modes)) (! print_mode));
 end;