From c640e978874385f9774c2903b97677406bee97a2 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Sat, 2 Sep 2023 18:08:49 +0200 Subject: [PATCH] project.el: Fix bug in project-ignores method for VC-aware backend The variable `backend' was always nil preventing the 25-line long `when' block from doing anything. This bug was introduced in commit 785fa801596ad7bb9f838cac865f00de29e253d1 "New user option: project-vc-extra-root-markers". (Bug#65704) * lisp/progmodes/project.el (project-ignores): Make sure the variable is initialized, so that backend-specific code is used if any. --- lisp/progmodes/project.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 37db677943a..29a81c7e151 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -733,11 +733,10 @@ See `project-vc-extra-root-markers' for the marker value format.") (cl-defmethod project-ignores ((project (head vc)) dir) (let* ((root (nth 2 project)) - backend) + (backend (cadr project))) (append (when (and backend (file-equal-p dir root)) - (setq backend (cadr project)) (delq nil (mapcar -- 2.39.2