src/Pure/Isar/find_theorems.ML
changeset 19476 816f519f8b72
parent 19046 bc5c6c9b114e
child 19482 9f11af8f7ef9
--- a/src/Pure/Isar/find_theorems.ML	Wed Apr 26 22:38:16 2006 +0200
+++ b/src/Pure/Isar/find_theorems.ML	Wed Apr 26 22:40:46 2006 +0200
@@ -252,7 +252,7 @@
 
     val matches = all_filters filters (find_thms ctxt ([], []));
     val len = length matches;
-    val limit = if_none opt_limit (! thms_containing_limit);
+    val limit = the_default (! thms_containing_limit) opt_limit;
 
     fun prt_fact (thmref, thm) =
       ProofContext.pretty_fact ctxt (PureThy.string_of_thmref thmref, [thm]);