branch: elpa/projectile
commit 44ac99f93ae8ca433778a04bbafce9e6eb4c23ef
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
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 ff68cb7450..4f13a07b59 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