aboutsummaryrefslogtreecommitdiff
path: root/projectile.el
diff options
context:
space:
mode:
Diffstat (limited to 'projectile.el')
-rw-r--r--projectile.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/projectile.el b/projectile.el
index 6ddd367..efd0bc0 100644
--- a/projectile.el
+++ b/projectile.el
@@ -5203,10 +5203,11 @@ Should be set via .dir-locals.el.")
(put 'projectile-project-enable-cmd-caching 'safe-local-variable #'booleanp)
(defun projectile--cache-project-commands-p ()
- "Whether to cache project commands."
- (with-temp-buffer
- (hack-dir-local-variables-non-file-buffer)
- projectile-project-enable-cmd-caching))
+ "Whether to cache project commands.
+The variable `projectile-project-enable-cmd-caching' is typically
+set via .dir-locals.el, which applies it buffer-locally in file
+buffers."
+ projectile-project-enable-cmd-caching)
(defvar projectile-project-configure-cmd nil
"The command to use with `projectile-configure-project'.