From 64c71949f8af0b0e23ff4679eada02d299b6791d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 30 Mar 2025 15:43:18 -0400 Subject: [PATCH] fix: projectile-find-file: stringp error in no-project buffers A regression introduced by our centralized cache hack in c3a9388. Amend: c3a9388452df Close: #8330 --- lisp/doom-projects.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/doom-projects.el b/lisp/doom-projects.el index 7ed857d82..d8441b02a 100644 --- a/lisp/doom-projects.el +++ b/lisp/doom-projects.el @@ -94,11 +94,11 @@ Must end with a slash.") (setq compilation-buffer-name-function #'projectile-compilation-buffer-name compilation-save-buffers-predicate #'projectile-current-project-buffer-p) - ;; Centralize Projectile's per-project cache files, so they don't litter - ;; projects with dotfiles. + ;; HACK: Centralize Projectile's per-project cache files, so they don't litter + ;; projects with dotfiles. (defadvice! doom--projectile-centralized-cache-files-a (fn &optional proot) :around #'projectile-project-cache-file - (let* ((proot (abbreviate-file-name (or proot (doom-project-root)))) + (let* ((proot (or proot (doom-project-root) default-directory)) (projectile-cache-file (expand-file-name (format "%s-%s" (doom-project-name proot) (sha1 proot))