General minor refactor & comment updates

This commit is contained in:
Henrik Lissner 2018-05-20 15:23:37 +02:00
parent ddadb79952
commit f2c02e32c8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 29 additions and 30 deletions

View file

@ -75,8 +75,7 @@ kills the buffer. If FORCE-P, force the deletion (don't ask for confirmation)."
((not (or force-p (y-or-n-p (format "Really delete %s?" fbase))))
(message "Aborted")
nil)
(t
(unwind-protect
((unwind-protect
(progn (delete-file path) t)
(let ((short-path (file-relative-name path (doom-project-root))))
(if (file-exists-p path)