src/Pure/pure_thy.ML
changeset 21507 f67b41110edd
parent 21438 90dda96bca98
child 21524 7843e2fd14a9
--- a/src/Pure/pure_thy.ML	Thu Nov 23 22:38:30 2006 +0100
+++ b/src/Pure/pure_thy.ML	Thu Nov 23 22:38:32 2006 +0100
@@ -104,7 +104,8 @@
 (* add / delete tags *)
 
 fun map_tags f thm =
-  Thm.put_name_tags (Thm.name_of_thm thm, f (#2 (Thm.get_name_tags thm))) thm;
+  let val (name, tags) = Thm.get_name_tags thm
+  in Thm.put_name_tags (name, f tags) thm end;
 
 fun tag_rule tg = map_tags (fn tgs => if member (op =) tgs tg then tgs else tgs @ [tg]);
 fun untag_rule s = map_tags (filter_out (fn (s', _) => s = s'));