   scrollToBufferPosition: (bufferPosition, options) ->
     @scrollToPixelPosition(@pixelPositionForBufferPosition(bufferPosition), options)
 
-  # Public: Scrolls the editor to the given screen position.
+  # Scrolls the editor to the given screen position.
   #
   # screenPosition - An object that represents a buffer position. It can be either
   #                  an {Object} (`{row, column}`), {Array} (`[row, column]`), or {Point}

    else
      @highlightedLine = null

  # Public: Retrieves the current {EditSession}'s grammar.
  #
  # Returns a {String} indicating the language's grammar rules.
  getGrammar: ->
    @activeEditSession.getGrammar()

  # Public: Sets the current {EditSession}'s grammar. This only works for mini-editors.
  #
  # grammar - A {String} indicating the language's grammar rules.
  setGrammar: (grammar) ->
    throw new Error("Only mini-editors can explicity set their grammar") unless @mini
    @activeEditSession.setGrammar(grammar)

  # Public: Reloads the current grammar.
  reloadGrammar: ->
    @activeEditSession.reloadGrammar()

  bindToKeyedEvent: (key, event, callback) ->
    binding = {}
    binding[key] = event

    @showIndentGuide = showIndentGuide
    @resetDisplay()

  # {Delegates to: Buffer.checkoutHead}
  checkoutHead: -> @getBuffer().checkoutHead()

  # {Delegates to: EditSession.setText}
  setText: (text) -> @activeEditSession.setText(text)

  # {Delegates to: EditSession.getText}
  getText: -> @activeEditSession.getText()

  # {Delegates to: EditSession.getPath}
  getPath: -> @activeEditSession?.getPath()

  #  {Delegates to: Buffer.getLineCount}
  getLineCount: -> @getBuffer().getLineCount()

  #  {Delegates to: Buffer.getLastRow}
  getLastBufferRow: -> @getBuffer().getLastRow()

  #  {Delegates to: Buffer.getTextInRange}
  getTextInRange: (range) -> @getBuffer().getTextInRange(range)

  #  {Delegates to: Buffer.getEofPosition}
  getEofPosition: -> @getBuffer().getEofPosition()

  #  {Delegates to: Buffer.lineForRow}
  lineForBufferRow: (row) -> @getBuffer().lineForRow(row)

  #  {Delegates to: Buffer.lineLengthForRow}
  lineLengthForBufferRow: (row) -> @getBuffer().lineLengthForRow(row)

  #  {Delegates to: Buffer.rangeForRow}
  rangeForBufferRow: (row) -> @getBuffer().rangeForRow(row)

  #  {Delegates to: Buffer.scanInRange}
  scanInBufferRange: (args...) -> @getBuffer().scanInRange(args...)

  #  {Delegates to: Buffer.backwardsScanInRange}
  backwardsScanInBufferRange: (args...) -> @getBuffer().backwardsScanInRange(args...)

  ### Internal ###
