Skip to content

Commit db52cf4

Browse files
committed
Rename a helper function
1 parent 719d3fe commit db52cf4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projectile.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ A wrapper around `file-exists-p' with additional caching support."
10801080
(run-with-timer 10 nil 'projectile-file-exists-cache-cleanup)))
10811081
(equal value 'found)))))
10821082

1083-
(defsubst projectile-caching-persistent-p ()
1083+
(defsubst projectile-persistent-cache-p ()
10841084
(eq projectile-enable-caching 'persistent))
10851085

10861086
;;;###autoload
@@ -1101,7 +1101,7 @@ to invalidate."
11011101
(remhash project-root projectile-projects-cache)
11021102
(remhash project-root projectile-projects-cache-time)
11031103
;; reset the project's cache file
1104-
(when (projectile-caching-persistent-p)
1104+
(when (projectile-persistent-cache-p)
11051105
;; TODO: Perhaps it's better to delete the cache file in such cases?
11061106
(projectile-serialize nil (projectile-project-cache-file project-root)))
11071107
(when projectile-verbose
@@ -1122,7 +1122,7 @@ to invalidate."
11221122
The cache is created both in memory and on the hard drive."
11231123
(puthash project files projectile-projects-cache)
11241124
(puthash project (projectile-time-seconds) projectile-projects-cache-time)
1125-
(when (projectile-caching-persistent-p)
1125+
(when (projectile-persistent-cache-p)
11261126
(projectile-serialize files (projectile-project-cache-file project))))
11271127

11281128
(defun projectile-load-project-cache (project-root)
@@ -1143,7 +1143,7 @@ The cache is created both in memory and on the hard drive."
11431143
(if (projectile-file-cached-p file project-root)
11441144
(progn
11451145
(puthash project-root (remove file project-cache) projectile-projects-cache)
1146-
(when (projectile-caching-persistent-p)
1146+
(when (projectile-persistent-cache-p)
11471147
(projectile-serialize project-cache (projectile-project-cache-file project-root)))
11481148
(when projectile-verbose
11491149
(message "%s removed from cache" file)))
@@ -1182,7 +1182,7 @@ The cache is created both in memory and on the hard drive."
11821182
(puthash current-project project-files projectile-projects-cache)
11831183
;; we serialize the cache with an idle time to avoid freezing the UI
11841184
;; immediately after the new file was created
1185-
(when (projectile-caching-persistent-p)
1185+
(when (projectile-persistent-cache-p)
11861186
(run-with-idle-timer
11871187
30
11881188
nil

0 commit comments

Comments
 (0)