From e28d03818dfc25962c46215ba04929ef46b072d3 Mon Sep 17 00:00:00 2001 From: toctan Date: Thu, 3 Sep 2015 23:45:46 +0800 Subject: [PATCH] Respect `delete-by-moving-to-trash` close bbatsov/prelude#864 --- core/prelude-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/prelude-core.el b/core/prelude-core.el index c59028e..1051236 100644 --- a/core/prelude-core.el +++ b/core/prelude-core.el @@ -248,7 +248,7 @@ there's a region, all lines that region covers will be duplicated." (if (vc-backend filename) (vc-delete-file filename) (when (y-or-n-p (format "Are you sure you want to delete %s? " filename)) - (delete-file filename) + (delete-file filename delete-by-moving-to-trash) (message "Deleted file %s" filename) (kill-buffer))))))