src/Pure/General/history.ML
changeset 15531 08c8dad8e399
parent 14981 e73f8140af78
child 15570 8d8c70b41bab
--- a/src/Pure/General/history.ML	Fri Feb 11 18:51:00 2005 +0100
+++ b/src/Pure/General/history.ML	Sun Feb 13 17:15:14 2005 +0100
@@ -45,9 +45,9 @@
   | redo (History (x, (lim, len, undo_list, r :: redo_list))) =
       History (r, (lim, len + 1, x :: undo_list, redo_list));
 
-fun push None _ x xs = x :: xs
-  | push (Some 0) _ _ _ = []
-  | push (Some n) len x xs = if len < n then x :: xs else take (n, x :: xs);
+fun push NONE _ x xs = x :: xs
+  | push (SOME 0) _ _ _ = []
+  | push (SOME n) len x xs = if len < n then x :: xs else take (n, x :: xs);
 
 fun apply_copy cp f (History (x, (lim, len, undo_list, _))) =
   let val x' = cp x