From 2570a1340b2a3ce0095fdeaafbe0e71f89ec9834 Mon Sep 17 00:00:00 2001 From: d12frosted Date: Fri, 17 Jun 2016 21:44:00 +0300 Subject: [PATCH] fix spacemacs/rename-file function It has some wrong variable names which leads to errors. --- layers/+distributions/spacemacs-base/funcs.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layers/+distributions/spacemacs-base/funcs.el b/layers/+distributions/spacemacs-base/funcs.el index e102e8424..a5731aa6f 100644 --- a/layers/+distributions/spacemacs-base/funcs.el +++ b/layers/+distributions/spacemacs-base/funcs.el @@ -298,14 +298,14 @@ projectile cache when it's possible and update recentf list." (rename-file filename new-name 1) (when buffer (kill-buffer buffer) - (find-file newfile)) + (find-file new-name)) (when (fboundp 'recentf-add-file) (recentf-add-file new-name) (recentf-remove-if-non-kept filename)) (when (and (configuration-layer/package-usedp 'projectile) (projectile-project-p)) (call-interactively #'projectile-invalidate-cache)) - (message "File '%s' successfully renamed to '%s'" name (file-name-nondirectory new-name))))))) + (message "File '%s' successfully renamed to '%s'" short-name (file-name-nondirectory new-name))))))) ;; from magnars (defun spacemacs/rename-current-buffer-file ()