       unless err
         @notify "Successfully saved!", "success"
         @lastSavedContents = @lastContentsSentForSave
+        @emit "FileContentSynced"
         unless @askedForSave
           log "this file has changed, put a modal and block editing @fatihacet!"
         @askedForSave = no

        mac   : macKey
      exec    : => callback?()

  ###
  FS REQUESTS
  ###

  requestSave:->

    contents = @getContents()
    return @notify "Nothing to save!" unless contents isnt @lastSavedContents
    @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

    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"
