export some generally useful operations;
authorwenzelm
Sun, 06 Jan 2013 14:11:15 +0100
changeset 50761 f6811984983b
parent 50753 1253fd12ca8a
child 50762 7d89bb992f48
export some generally useful operations;
src/Pure/Thy/thy_syntax.scala
--- a/src/Pure/Thy/thy_syntax.scala	Sun Jan 06 12:44:45 2013 +0100
+++ b/src/Pure/Thy/thy_syntax.scala	Sun Jan 06 14:11:15 2013 +0100
@@ -169,8 +169,7 @@
 
   /* edit individual command source */
 
-  @tailrec private def edit_text(eds: List[Text.Edit], commands: Linear_Set[Command])
-      : Linear_Set[Command] =
+  @tailrec def edit_text(eds: List[Text.Edit], commands: Linear_Set[Command]): Linear_Set[Command] =
   {
     eds match {
       case e :: es =>
@@ -293,7 +292,7 @@
 
   /* main */
 
-  private def diff_commands(old_cmds: Linear_Set[Command], new_cmds: Linear_Set[Command])
+  def diff_commands(old_cmds: Linear_Set[Command], new_cmds: Linear_Set[Command])
     : List[(Option[Command], Option[Command])] =
   {
     val removed = old_cmds.iterator.filter(!new_cmds.contains(_)).toList