src/Pure/PIDE/isar_document.scala
changeset 44644 317e4962dd0f
parent 44615 a4ff8a787202
child 44661 383c9d758a56
     1.1 --- a/src/Pure/PIDE/isar_document.scala	Thu Sep 01 23:08:42 2011 +0200
     1.2 +++ b/src/Pure/PIDE/isar_document.scala	Fri Sep 02 11:52:13 2011 +0200
     1.3 @@ -148,8 +148,9 @@
     1.4  {
     1.5    /* commands */
     1.6  
     1.7 -  def define_command(id: Document.Command_ID, text: String): Unit =
     1.8 -    input("Isar_Document.define_command", Document.ID(id), text)
     1.9 +  def define_command(command: Command): Unit =
    1.10 +    input("Isar_Document.define_command",
    1.11 +      Document.ID(command.id), Symbol.encode(command.name), Symbol.encode(command.source))
    1.12  
    1.13  
    1.14    /* document versions */