src/Pure/System/session.scala
changeset 38416 56e76cd46b4f
parent 38415 f3220ef79d51
child 38417 b8922ae21111
equal deleted inserted replaced
38415:f3220ef79d51 38416:56e76cd46b4f
   316         def revert(offset: Int): Int = (offset /: reverse_edits)((i, edit) => edit.revert(i))
   316         def revert(offset: Int): Int = (offset /: reverse_edits)((i, edit) => edit.revert(i))
   317         def lookup_command(id: Document.Command_ID): Option[Command] =
   317         def lookup_command(id: Document.Command_ID): Option[Command] =
   318           state_snapshot.lookup_command(id)
   318           state_snapshot.lookup_command(id)
   319         def state(command: Command): Command.State =
   319         def state(command: Command): Command.State =
   320           try { state_snapshot.command_state(document, command) }
   320           try { state_snapshot.command_state(document, command) }
   321           catch { case _: State.Fail => command.empty_state }
   321           catch { case _: Document.State.Fail => command.empty_state }
   322       }
   322       }
   323     }
   323     }
   324 
   324 
   325     def act
   325     def act
   326     {
   326     {