src/Pure/proof_general.ML
changeset 19473 d87a8838afa4
parent 19300 7689f81f8996
child 19482 9f11af8f7ef9
--- a/src/Pure/proof_general.ML	Wed Apr 26 20:34:11 2006 +0200
+++ b/src/Pure/proof_general.ML	Wed Apr 26 22:38:05 2006 +0200
@@ -172,12 +172,12 @@
         ("class",  pgip_class),
         ("seq",    string_of_int (pgip_serial())),
         ("id",     !pgip_id)] @
-       if_none (Option.map (single o (pair "destid")) (! pgip_refid)) [] @
+       the_default [] (Option.map (single o (pair "destid")) (! pgip_refid)) @
        (* destid=refid since Isabelle only communicates back to sender,
           so we may omit refid from attributes.
-       if_none (Option.map (single o (pair "refid"))  (! pgip_refid)) [] @
+       the_default [] (Option.map (single o (pair "refid"))  (! pgip_refid)) @
        *)
-       if_none (Option.map (single o (pair "refseq")) (! pgip_refseq)) [])
+       the_default [] (Option.map (single o (pair "refseq")) (! pgip_refseq)))
       pgips;
 
 in
@@ -1102,7 +1102,7 @@
                                               ("default", default)]
                        [ty]) prefs)]) (!preferences)
 
-fun allprefs () = Library.foldl (op @) ([], map snd (!preferences))
+fun allprefs () = maps snd (!preferences)
 
 fun setpref name value =
     (case AList.lookup (op =) (allprefs ()) name of