         @emitModifiedStatusChanged(@isModified())
 
     @file.on "moved", =>
-      @state.set('relativePath', @project.relativize(@getPath()))
+      @relativePath = @project.relativize(@getPath())
       @emit "path-changed", this
 
   ### Public ###

    else
      @file = null

    @state.set('relativePath', @project.relativize(path))
    @emit "path-changed", this

  # Retrieves the current buffer's file extension.

    text: -> new telepath.String('', replicated: false)
    id: -> guid.create().toString()
    filePath: null
    relativePath: null

  @::lazyGetter 'project', -> @grandparent

