--- 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;