adapted to dest_keywords, dest_parsers;
authorwenzelm
Fri, 16 Jul 1999 22:27:16 +0200
changeset 7027 ca0fbe679bbb
parent 7026 69724548fad1
child 7028 6ea3b385e731
adapted to dest_keywords, dest_parsers;
src/Pure/Interface/proof_general.ML
--- a/src/Pure/Interface/proof_general.ML	Fri Jul 16 22:26:44 1999 +0200
+++ b/src/Pure/Interface/proof_general.ML	Fri Jul 16 22:27:16 1999 +0200
@@ -28,7 +28,7 @@
   "\n  '(" ^ space_implode "\n    " (map (quote o regexp_quote) strs) ^ "))\n";
 
 fun make_elisp_commands commands kind =
-  defconst kind (mapfilter (fn (c, k) => if k = kind then Some c else None) commands);
+  defconst kind (mapfilter (fn (c, _, k, _) => if k = kind then Some c else None) commands);
 
 fun make_elisp_syntax (keywords, commands) =
   ";;\n\
@@ -37,7 +37,7 @@
   \;;\n\
   \;; $" ^ "Id$\n\
   \;;\n" ^
-  defconst "minor" (filter Syntax.is_identifier (keywords \\ map #1 commands)) ^
+  defconst "minor" (filter Syntax.is_identifier keywords) ^
   implode (map (make_elisp_commands commands) OuterSyntax.Keyword.kinds) ^
   "\n(provide 'isar-keywords)\n";
 
@@ -46,7 +46,8 @@
 in
 
 fun write_keywords () =
-  File.write (Path.unpack keywords_file) (make_elisp_syntax (OuterSyntax.dest_syntax ()));
+  File.write (Path.unpack keywords_file)
+    (make_elisp_syntax (OuterSyntax.dest_keywords (), OuterSyntax.dest_parsers ()));
 
 end;