tuned;
authorwenzelm
Thu, 23 Nov 2006 22:38:32 +0100
changeset 21507 f67b41110edd
parent 21506 b2a673894ce5
child 21508 3029fb2d5650
tuned;
src/Pure/pure_thy.ML
--- 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'));