Add rename-file-and-buffer fucntion.