aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.dev>2026-02-28 10:07:02 +0200
committerBozhidar Batsov <bozhidar@batsov.dev>2026-02-28 10:22:31 +0200
commitd6bfdff3c262d9f36ec1a9b2e3f502336d37e79f (patch)
tree736c580a0001bbacab7222f9fa20958628f9acde
parent77216ab651af1537a1aeaa20d3780dd0820790f3 (diff)
Skip projectile-maybe-limit-project-file-buffers on TRAMP
The buffer-limiting function was called before the file-remote-p guard in projectile-find-file-hook-function, triggering expensive buffer enumeration and file-truename calls on every remote file open. Move it inside the existing TRAMP guard.
-rw-r--r--projectile.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/projectile.el b/projectile.el
index 4a252e3..9f12976 100644
--- a/projectile.el
+++ b/projectile.el
@@ -6454,8 +6454,8 @@ Magit that don't trigger `find-file-hook'."
The function does pretty much nothing when triggered on remote files
as all the operations it normally performs are extremely slow over
tramp."
- (projectile-maybe-limit-project-file-buffers)
(unless (file-remote-p default-directory)
+ (projectile-maybe-limit-project-file-buffers)
(when projectile-dynamic-mode-line
(projectile-update-mode-line))
(when projectile-auto-update-cache