     file.on "fs.save.started", =>
       @lastContentsSentForSave = @getContents()
 
+    file.on "fs.saveAs.finished", =>
+      @emit "FileContentSynced"
+      @emit "FileHasBeenSavedAs", file
 
     if @getOptions().enableShortcuts
       @addKeyCombo "save", "Ctrl-S", @bound "requestSave"

          if contents
            @setContents contents
            @lastSavedContents = contents
          @editor.gotoLine 0
          @focus()
          @show()

        mac   : macKey
      exec    : => callback?()

  isContentChanged: ->
    return @getContents() isnt @lastSavedContents

  ###
  FS REQUESTS
  ###

  requestSave:->
    contents = @getContents()
    return @notify "Nothing to save!" unless @isContentChanged()
    @askedForSave = yes
    @emit "ace.requests.save", contents

  requestSaveAs:->
    contents = @getContents()
    @emit "ace.requests.saveAs", contents

  fetchContents:(callback)->
    file = @getData()
    unless /localfile:/.test file.path
      @notify "Loading...", null, null, 10000
