From 44ac99f93ae8ca433778a04bbafce9e6eb4c23ef Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Sat, 28 Feb 2026 10:46:08 +0200 Subject: 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. --- projectile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.0