equal
deleted
inserted
replaced
161 |
161 |
162 |
162 |
163 (* get attributes *) |
163 (* get attributes *) |
164 |
164 |
165 fun attribute_generic context = |
165 fun attribute_generic context = |
166 let val table = Attributes.get context |
166 let val table = Attributes.get context in |
167 in fn src => #1 (Name_Space.get table (#1 (Token.name_of_src src))) src end; |
167 fn src => |
|
168 let |
|
169 val name = #1 (Token.name_of_src src); |
|
170 val label = Long_Name.qualify Markup.attributeN name; |
|
171 val att = #1 (Name_Space.get table name) src; |
|
172 in Position.setmp_thread_data_label label att end |
|
173 end; |
168 |
174 |
169 val attribute = attribute_generic o Context.Proof; |
175 val attribute = attribute_generic o Context.Proof; |
170 val attribute_global = attribute_generic o Context.Theory; |
176 val attribute_global = attribute_generic o Context.Theory; |
171 |
177 |
172 fun attribute_cmd ctxt = attribute ctxt o check_src ctxt; |
178 fun attribute_cmd ctxt = attribute ctxt o check_src ctxt; |