branch: elpa/projectile
commit 77216ab651af1537a1aeaa20d3780dd0820790f3
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Fix projectile-update-project-type resetting type cache with wrong test
When called with :precedence, the function recreated the type cache
hash table without :test 'equal, defaulting to eql. Since project
roots are strings, no cache key would ever match, causing perpetual
re-detection of project types until Emacs was restarted.
---
projectile.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projectile.el b/projectile.el
index 2e3d8cb24f..4a252e3c52 100644
--- a/projectile.el
+++ b/projectile.el
@@ -3188,7 +3188,7 @@ files such as test/impl/other files as below:
(if precedence
(let ((filtered-types
(seq-remove #'project-filter projectile-project-types)))
- (setq projectile-project-type-cache (make-hash-table))
+ (setq projectile-project-type-cache (make-hash-table :test
'equal))
(cond ((eq precedence 'high)
(cons project-type-elt filtered-types))
((eq precedence 'low)