src/Pure/Thy/present.ML
changeset 59209 8521841f277b
parent 59208 2486d625878b
child 59210 8658b4290aed
     1.1 --- a/src/Pure/Thy/present.ML	Wed Dec 31 14:15:52 2014 +0100
     1.2 +++ b/src/Pure/Thy/present.ML	Wed Dec 31 14:28:04 2014 +0100
     1.3 @@ -60,8 +60,8 @@
     1.4  
     1.5  (** graphs **)
     1.6  
     1.7 -fun ID_of sess s = space_implode "/" (sess @ [s]);
     1.8 -fun ID_of_thy thy = ID_of (session_chapter_name thy) (Context.theory_name thy);
     1.9 +fun ident_of sess s = space_implode "/" (sess @ [s]);
    1.10 +fun ident_of_thy thy = ident_of (session_chapter_name thy) (Context.theory_name thy);
    1.11  
    1.12  fun theory_link (curr_chapter, curr_session) thy =
    1.13    let
    1.14 @@ -89,11 +89,11 @@
    1.15        | SOME p => Path.implode p);
    1.16      val graph_entry =
    1.17       {name = thy_name,
    1.18 -      ident = ID_of [chapter, session_name] thy_name,
    1.19 +      ident = ident_of [chapter, session_name] thy_name,
    1.20        directory = session_name,
    1.21        path = path,
    1.22        unfold = false,
    1.23 -      parents = map ID_of_thy (Theory.parents_of thy)};
    1.24 +      parents = map ident_of_thy (Theory.parents_of thy)};
    1.25    in (0, graph_entry) end);
    1.26  
    1.27  fun ins_graph_entry (i, entry as {ident, ...}) (graph: (int * browser_node) list) =
    1.28 @@ -393,11 +393,11 @@
    1.29  
    1.30        val graph_entry =
    1.31         {name = name,
    1.32 -        ident = ID_of [chapter, session_name] name,
    1.33 +        ident = ident_of [chapter, session_name] name,
    1.34          directory = session_name,
    1.35          unfold = true,
    1.36          path = Path.implode (html_path name),
    1.37 -        parents = map ID_of_thy parents};
    1.38 +        parents = map ident_of_thy parents};
    1.39      in
    1.40        init_theory_info name (make_theory_info ("", html_source));
    1.41        add_graph_entry (update_time, graph_entry);