src/Pure/General/output.ML
changeset 17521 0f1c48de39f5
parent 17412 e26cb20ef0cc
child 17539 b2ce48df4d4c
--- a/src/Pure/General/output.ML	Tue Sep 20 15:12:40 2005 +0200
+++ b/src/Pure/General/output.ML	Tue Sep 20 16:17:34 2005 +0200
@@ -160,10 +160,13 @@
   in asl l end;
 
 fun overwrite_warn (args as (alist, (a, _))) msg =
- (if is_none (assoc (alist, a)) then () else warning msg;
+ (if is_none (AList.lookup (op =) alist a) then () else warning msg;
   overwrite args);
 
-
+fun update_warn eq msg (kv as (key, value)) xs = (
+  if (not o AList.defined eq xs) key then () else warning msg;
+  AList.update eq kv xs
+)
 
 (** handle errors  **)