aboutsummaryrefslogtreecommitdiff
path: root/projectile.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.dev>2026-02-28 10:06:36 +0200
committerBozhidar Batsov <bozhidar@batsov.dev>2026-02-28 10:22:31 +0200
commit77216ab651af1537a1aeaa20d3780dd0820790f3 (patch)
treed80a64fd536e50e4ffa92c23f4116bb6fc8cf0f8 /projectile.el
parent5d876632aececad99a718343c43da039e64b0818 (diff)
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.
Diffstat (limited to 'projectile.el')
-rw-r--r--projectile.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/projectile.el b/projectile.el
index 2e3d8cb..4a252e3 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)