aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.dev>2026-02-28 10:46:08 +0200
committerBozhidar Batsov <bozhidar@batsov.dev>2026-02-28 10:51:37 +0200
commit44ac99f93ae8ca433778a04bbafce9e6eb4c23ef (patch)
treece96135bbd9a4fc79add08e7638c0c6419dabffc
parentfe536f569d2e1974c6976415f89af100a9bf80af (diff)
Use file-truename in projectile-recentf-files for symlink matching
recentf stores canonical paths (with symlinks resolved), so the project root must also be truename-resolved for string-prefix-p matching to work when the project path contains symlinks.
-rw-r--r--projectile.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/projectile.el b/projectile.el
index ff68cb7..4f13a07 100644
--- a/projectile.el
+++ b/projectile.el
@@ -5161,7 +5161,7 @@ directory to open."
(defun projectile-recentf-files ()
"Return a list of recently visited files in a project."
(and (boundp 'recentf-list)
- (let ((project-root (expand-file-name (projectile-acquire-root))))
+ (let ((project-root (file-truename (projectile-acquire-root))))
(mapcar
(lambda (f) (file-relative-name f project-root))
(seq-filter