crux
crux copied to clipboard
crux-rename-file-and-buffer cannot be called repeatedly
crux-rename-file-and-buffer
calls vc-rename-file
if the file is associated with a VC backend.
If I try to rename a git-backed file twice, the second time just errors with vc-rename-file: Please update files before moving them
.
I'd be tempted to just do the rename without calling any VC logic. I prefer to stage changes separately when working with git.
Maybe we can just add some prefix argument to controlling. I never do repeated renames, so I find doing the vc rename in the same step quite useful.
Clearly you're a better typist than me. It's common for me to mistype the file extension :)