src/Pure/Thy/present.ML
changeset 39616 8052101883c3
parent 38133 987680d2e77d
child 39733 6d373e9dcb9d
equal deleted inserted replaced
39615:b926f8ec9cac 39616:8052101883c3
   163 val browser_info = Unsynchronized.ref empty_browser_info;
   163 val browser_info = Unsynchronized.ref empty_browser_info;
   164 fun change_browser_info f =
   164 fun change_browser_info f =
   165   CRITICAL (fn () => Unsynchronized.change browser_info (map_browser_info f));
   165   CRITICAL (fn () => Unsynchronized.change browser_info (map_browser_info f));
   166 
   166 
   167 val suppress_tex_source = Unsynchronized.ref false;
   167 val suppress_tex_source = Unsynchronized.ref false;
   168 fun no_document f x = setmp_noncritical suppress_tex_source true f x;
   168 fun no_document f x = Unsynchronized.setmp suppress_tex_source true f x;  (* FIXME unreliable *)
   169 
   169 
   170 fun init_theory_info name info =
   170 fun init_theory_info name info =
   171   change_browser_info (fn (theories, files, tex_index, html_index, graph) =>
   171   change_browser_info (fn (theories, files, tex_index, html_index, graph) =>
   172     (Symtab.update (name, info) theories, files, tex_index, html_index, graph));
   172     (Symtab.update (name, info) theories, files, tex_index, html_index, graph));
   173 
   173