     @emitter.on 'did-change-visibility', callback
 
   on: (eventName) ->
+    return unless Grim.includeDeprecations
+
     switch eventName
       when 'moved'
         Grim.deprecate("Use Cursor::onDidChangePosition instead")

  setVisible: (visible) ->
    if @visible != visible
      @visible = visible
      @emit 'visibility-changed', @visible
      @emitter.emit 'did-change-visibility', @visible

  # Public: Returns the visibility of the cursor.

  # Returns a {ScopeDescriptor}
  getScopeDescriptor: ->
    @editor.scopeDescriptorForBufferPosition(@getBufferPosition())

  # Public: Returns true if this cursor has no non-whitespace characters before
  # its current position.
