From 1fc41d719c19973c8f45fc93c8e5ffcfa4ff2477 Mon Sep 17 00:00:00 2001 From: Dani Brown Date: Sun, 1 Dec 2024 20:44:57 +0000 Subject: [PATCH] fix: project-current-directory-override takes a directory Not a `t`. [It overrides `default-directory`](https://github.com/emacs-mirror/emacs/blob/6c1c3120b98652de149ee9d8c241cd3636755171/lisp/progmodes/project.el#L196-L198). --- lisp/lib/projects.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/lib/projects.el b/lisp/lib/projects.el index 93c187633..6ff145042 100644 --- a/lisp/lib/projects.el +++ b/lisp/lib/projects.el @@ -160,7 +160,7 @@ If DIR is not a project, it will be indexed (but not cached)." ((and (bound-and-true-p helm-mode) (fboundp 'helm-find-files)) (call-interactively #'helm-find-files)) - ((when-let* ((project-current-directory-override t) + ((when-let* ((project-current-directory-override dir) (pr (project-current t dir))) (condition-case _ (project-find-file-in nil nil pr)