src/Pure/General/name_space.ML
changeset 42327 7c7cc7590eb3
parent 42135 da200fa2768c
child 42358 b47d41d9f4b5
--- a/src/Pure/General/name_space.ML	Sat Apr 09 23:29:50 2011 +0200
+++ b/src/Pure/General/name_space.ML	Mon Apr 11 17:11:03 2011 +0200
@@ -82,8 +82,9 @@
 
 fun entry_markup def kind (name, {pos, id, ...}: entry) =
   let
-    val occurrence = (if def then Markup.defN else Markup.refN, string_of_int id);
-    val props = occurrence :: Position.properties_of pos;
+    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;
 
 fun print_entry def kind (name, entry) =