src/Pure/Isar/method.ML
changeset 7611 5b5aba10c8f6
parent 7601 c568799bf21b
child 7664 c151ac595551
--- a/src/Pure/Isar/method.ML	Sun Sep 26 16:38:50 1999 +0200
+++ b/src/Pure/Isar/method.ML	Sun Sep 26 16:39:54 1999 +0200
@@ -31,7 +31,7 @@
   val erule: thm list -> Proof.method
   val assumption: Proof.context -> Proof.method
   exception METHOD_FAIL of (string * Position.T) * exn
-  val help_methods: theory -> unit
+  val help_methods: theory option -> unit
   val method: theory -> Args.src -> Proof.context -> Proof.method
   val add_methods: (bstring * (Args.src -> Proof.context -> Proof.method) * string) list
     -> theory -> theory
@@ -212,7 +212,9 @@
 
 structure MethodsData = TheoryDataFun(MethodsDataArgs);
 val print_methods = MethodsData.print;
-val help_methods = MethodsDataArgs.print_meths false o MethodsData.get;
+
+fun help_methods None = writeln "methods: (unkown theory context)"
+  | help_methods (Some thy) = MethodsDataArgs.print_meths false (MethodsData.get thy);
 
 
 (* get methods *)