improve 'rename-file-and-buffer