 {Range} = require 'text-buffer'
 _ = require 'underscore-plus'
-{Emitter} = require 'event-kit'
+{CompositeDisposable, Emitter} = require 'event-kit'
 Grim = require 'grim'
 
 # Essential: Represents a buffer annotation that remains logically stationary

    @displayBuffer.pixelRangeForScreenRange(@getScreenRange(), false)

if Grim.includeDeprecations
  {Subscriber} = require 'emissary'
  EmitterMixin = require('emissary').Emitter
  EmitterMixin.includeInto(Marker)
  Subscriber.includeInto(Marker)

  Marker::on = (eventName) ->
    switch eventName


  constructor: ({@bufferMarker, @displayBuffer}) ->
    @emitter = new Emitter
    @disposables = new CompositeDisposable
    @id = @bufferMarker.id
    @oldHeadBufferPosition = @getHeadBufferPosition()
    @oldHeadScreenPosition = @getHeadScreenPosition()
