From cfbb181aecd59e0b1836d5041e61040e269b2332 Mon Sep 17 00:00:00 2001 From: Thomas Hilke Date: Mon, 27 Apr 2026 15:34:23 +0200 Subject: [PATCH] Normalize file path returned by projectile-files-from-cmd On Windows, the file path harvested in the standard output of running `cmd` may use backslash as folder separator. Since the result of `projectile-files-from-cmd` are to be compared with the files from the current project in `projectile-replace`, both file path must be constructed/normalized in the same way for the comparison to be meaningful. --- projectile.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/projectile.el b/projectile.el index b6008f4ac..61deb22ff 100644 --- a/projectile.el +++ b/projectile.el @@ -5463,9 +5463,7 @@ CMD should include the necessary search params and should output equivalently to grep -HlI (only unique matching filenames). Returns a list of expanded filenames." (let ((default-directory directory)) - (mapcar (lambda (str) - (concat directory - (string-remove-prefix "./" str))) + (mapcar #'expand-file-name (split-string (string-trim (shell-command-to-string cmd)) "\n+"