tuned signature;
authorwenzelm
Sat, 01 Apr 2017 15:35:32 +0200
changeset 65341 c82a1620b274
parent 65340 8ec91f7eca37
child 65342 e32eb488c3a3
tuned signature;
src/Pure/PIDE/command.scala
src/Pure/Thy/thy_syntax.scala
--- a/src/Pure/PIDE/command.scala	Sat Apr 01 08:05:40 2017 +0200
+++ b/src/Pure/PIDE/command.scala	Sat Apr 01 15:35:32 2017 +0200
@@ -355,7 +355,7 @@
     new Command(id, Document.Node.Name.empty, no_blobs, span1, source1, results, markup)
   }
 
-  def unparsed(source: String): Command =
+  def text(source: String): Command =
     unparsed(Document_ID.none, source, Results.empty, Markup_Tree.empty)
 
   def rich_text(id: Document_ID.Command, results: Results, body: XML.Body): Command =
--- a/src/Pure/Thy/thy_syntax.scala	Sat Apr 01 08:05:40 2017 +0200
+++ b/src/Pure/Thy/thy_syntax.scala	Sat Apr 01 15:35:32 2017 +0200
@@ -121,7 +121,7 @@
     eds match {
       case e :: es =>
         def insert_text(cmd: Option[Command], text: String): Linear_Set[Command] =
-          if (text == "") commands else commands.insert_after(cmd, Command.unparsed(text))
+          if (text == "") commands else commands.insert_after(cmd, Command.text(text))
 
         Document.Node.Commands.starts(commands.iterator).find {
           case (cmd, cmd_start) =>