src/Pure/General/name_space.ML
changeset 45412 7797f5351ec4
parent 43560 d1650e3720fd
child 45666 d83797ef0d2d
--- a/src/Pure/General/name_space.ML	Tue Nov 08 17:47:22 2011 +0100
+++ b/src/Pure/General/name_space.ML	Tue Nov 08 21:09:35 2011 +0100
@@ -83,11 +83,7 @@
   id: serial};
 
 fun entry_markup def kind (name, {pos, id, ...}: entry) =
-  let
-    val props =
-      if def then (Markup.defN, string_of_int id) :: Position.properties_of pos
-      else (Markup.refN, string_of_int id) :: Position.def_properties_of pos;
-  in Markup.properties props (Markup.entity kind name) end;
+  Markup.properties (Position.entity_properties_of def id pos) (Markup.entity kind name);
 
 fun print_entry def kind (name, entry) =
   quote (Markup.markup (entry_markup def kind (name, entry)) name);