src/Pure/PIDE/command.scala
changeset 45709 87017fcbad83
parent 45672 a497c5d4a523
child 46152 793cecd4ffc0
equal deleted inserted replaced
45708:7c8bed80301f 45709:87017fcbad83
    64           atts match {
    64           atts match {
    65             case Isabelle_Markup.Serial(i) =>
    65             case Isabelle_Markup.Serial(i) =>
    66               val result = XML.Elem(Markup(name, Position.purge(atts)), body)
    66               val result = XML.Elem(Markup(name, Position.purge(atts)), body)
    67               val st0 = add_result(i, result)
    67               val st0 = add_result(i, result)
    68               val st1 =
    68               val st1 =
    69                 if (Isabelle_Document.is_tracing(message)) st0
    69                 if (Protocol.is_tracing(message)) st0
    70                 else
    70                 else
    71                   (st0 /: Isabelle_Document.message_positions(command, message))(
    71                   (st0 /: Protocol.message_positions(command, message))(
    72                     (st, range) => st.add_markup(Text.Info(range, result)))
    72                     (st, range) => st.add_markup(Text.Info(range, result)))
    73               val st2 = (st1 /: Isabelle_Document.message_reports(message))(_ accumulate _)
    73               val st2 = (st1 /: Protocol.message_reports(message))(_ accumulate _)
    74               st2
    74               st2
    75             case _ => System.err.println("Ignored message without serial number: " + message); this
    75             case _ => System.err.println("Ignored message without serial number: " + message); this
    76           }
    76           }
    77       }
    77       }
    78   }
    78   }