src/Pure/System/session.scala
changeset 38359 96b22dfeb56a
parent 38355 8cb265fb12fe
child 38360 53224a4d2f0e
--- a/src/Pure/System/session.scala	Thu Aug 12 13:42:05 2010 +0200
+++ b/src/Pure/System/session.scala	Thu Aug 12 13:43:55 2010 +0200
@@ -356,7 +356,8 @@
 
   def stop() { session_actor ! Stop }
 
-  def current_change(): Document.Change = editor_history.current_change()
+  def snapshot(name: String, pending_edits: List[Text_Edit]): Document.Snapshot =
+    editor_history.current_change().snapshot(name, pending_edits)
 
   def edit_document(edits: List[Document.Node_Text_Edit]) { editor_history !? Edit_Document(edits) }
 }