From 8b66289eded7db0b90a507b5c66e58a956908a21 Mon Sep 17 00:00:00 2001 From: Joseph Benden Date: Thu, 10 Mar 2016 18:19:28 -0700 Subject: [PATCH] Remove unnecessary function call, per #957 * buffer-file-name returns the current buffer when no argument is specified. --- projectile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projectile.el b/projectile.el index 296cfe6f9..85da26f8f 100644 --- a/projectile.el +++ b/projectile.el @@ -658,7 +658,7 @@ The cache is created both in memory and on the hard drive." (interactive) (let ((current-project (projectile-project-root))) (when (and (buffer-file-name) (gethash (projectile-project-root) projectile-projects-cache)) - (let* ((abs-current-file (file-truename (buffer-file-name (current-buffer)))) + (let* ((abs-current-file (file-truename (buffer-file-name))) (current-file (file-relative-name abs-current-file current-project))) (unless (or (projectile-file-cached-p current-file current-project) (projectile-ignored-directory-p (file-name-directory abs-current-file))