 CollabGroupProtocol = require '../atox-collabGroupProtocol'
-
-newlineRegex: /\r\n|\n|\r/g
+{Range, Point} = require 'atom'
 
 module.exports =
 class Collab extends CollabGroupProtocol

    @sLines = @editor.getBuffer().getLines()
    @sLineEndings = @editor.getBuffer().lineEndings
    @pmutex = true

    for c, i in changes
      changes[i].pos = changes[i].pos.toArray()

    return changes


    return {"lines": @sLines, "lineEndings": @sLineEndings}

  CMD_process: (changes) ->
    @externalchanges = []
    console.log "External Changes:"
    console.log changes
    if changes?
      for pchanges in changes
        @externalChange(c) for c in pchanges
    @process()
