From a25eff0189c156cc3ce864548d03c6bd09447a96 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 11 Jun 2018 01:01:27 +0200 Subject: [PATCH] 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. --- core/autoload/files.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/autoload/files.el b/core/autoload/files.el index 5efcb3b5a..9afcb041d 100644 --- a/core/autoload/files.el +++ b/core/autoload/files.el @@ -30,11 +30,7 @@ (projectile-file-cached-p old-path (projectile-project-root))) (projectile-purge-file-from-cache old-path)) (when (bound-and-true-p save-place-mode) - (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)))) + (save-place-forget-unreadable-files))) (defun doom--update-file (path) (when (featurep 'vc)