From: Spencer Baugh Date: Fri, 5 Apr 2024 00:29:42 +0000 (+0300) Subject: (project-current): Fix the previous change X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b046a31baf18a9642d9cd890f3ec334e7c2134dc;p=emacs.git (project-current): Fix the previous change * lisp/progmodes/project.el (project-current): Fix the previous change (bug#69584). (cherry picked from commit 21f9be005318dcc58918884fc3c24d7d75562e96) --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 879d7f403a5..e5fb69651f2 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -229,8 +229,8 @@ See the doc string of `project-find-functions' for the general form of the project instance object." (unless directory (setq directory (or project-current-directory-override default-directory))) - (let ((pr (project--find-in-directory directory)) - (non-essential (not maybe-prompt))) + (let* ((non-essential (not maybe-prompt)) + (pr (project--find-in-directory directory))) (cond (pr) ((unless project-current-directory-override