delete-this-file: don't propagate deletion to vcs

Doom shouldn't assume the user always wants to stage the current
deletion after every delete.
This commit is contained in:
Henrik Lissner 2018-06-11 01:01:27 +02:00
parent 4c8afef3c9
commit a25eff0189
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -30,11 +30,7 @@
(projectile-file-cached-p old-path (projectile-project-root))) (projectile-file-cached-p old-path (projectile-project-root)))
(projectile-purge-file-from-cache old-path)) (projectile-purge-file-from-cache old-path))
(when (bound-and-true-p save-place-mode) (when (bound-and-true-p save-place-mode)
(save-place-forget-unreadable-files)) (save-place-forget-unreadable-files)))
(when (featurep 'vc)
(when-let* ((backend (vc-backend old-path))
(default-directory (file-name-directory old-path)))
(vc-call-backend backend 'delete-file old-path))))
(defun doom--update-file (path) (defun doom--update-file (path)
(when (featurep 'vc) (when (featurep 'vc)