merged
authorwenzelm
Thu, 29 Mar 2012 22:52:24 +0200
changeset 47200 fbcb7024fc93
parent 47198 cfd8ff62eab1 (current diff)
parent 47199 15ede9f1da3f (diff)
child 47201 06e6f352df1b
merged
--- a/src/Pure/PIDE/xml.ML	Thu Mar 29 21:13:48 2012 +0200
+++ b/src/Pure/PIDE/xml.ML	Thu Mar 29 22:52:24 2012 +0200
@@ -327,7 +327,8 @@
 fun option _ NONE = []
   | option f (SOME x) = [node (f x)];
 
-fun variant fs x = [tagged (the (get_index (fn f => try f x) fs))];
+fun variant fs x =
+  [tagged (the (get_index (fn f => SOME (f x) handle General.Match => NONE) fs))];
 
 end;