       @css left: cursorLeft, top: belowPosition
       @css "-webkit-transform", ""
 
-  ###
-   * Replaces the current prefix with the given match
-   * @param {Object} match
-   * @private
-  ###
+  # Private: Replaces the current prefix with the given match
+  #
+  # match - The match to replace the current prefix with
   replaceTextWithMatch: (match) ->
     selection = @editor.getSelection()
     startPosition = selection.getBufferRange().start

      position = @editor.getCursorBufferPosition()
      @editor.setCursorBufferPosition [position.row, position.column]

  ###
   * Focuses the editor again
   * @param {Boolean} focus
   * @private
  ###
  cancel: (focus=true) =>
    super
    @editorView.focus() if focus

  ###
   * Finds suggestions for the current prefix, sets the list items,
   * positions the overlay and shows it
   * @private
  ###
  runAutocompletion: =>
    # Iterate over all providers, ask them to build word lists
    suggestions = []

    p.stop()
    @setPosition()

  # Private: Sets the current buffer, starts listening to change events and delegates
  # them to #onChanged()
  #
  # currentBuffer - The current {TextBuffer}
  setCurrentBuffer: (@currentBuffer) ->
    @currentBuffer.on "saved", @onSaved
    @currentBuffer.on "changed", @onChanged

  # Private: Why are we doing this again...?
  # Might be because of autosave:
  # http://git.io/iF32wA
  getModel: -> null

  # Public: Clean up, stop listening to events
  dispose: ->
    @currentBuffer?.off "changed", @onChanged
    @currentBuffer?.off "saved", @onSaved
