From 12b5a10b050c60cc4845e85284f1016cd0366838 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 7 Sep 2020 15:41:54 +0100 Subject: [PATCH] Debug project-find-file for briefcase As the name suggests, `f-parent-of?` only returns true when A is a *parent* of B. What I want instead if `f-ancestor-of?`. --- emacs/.emacs.d/wpc/wpc-misc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/.emacs.d/wpc/wpc-misc.el b/emacs/.emacs.d/wpc/wpc-misc.el index bdb504760..46c8db825 100644 --- a/emacs/.emacs.d/wpc/wpc-misc.el +++ b/emacs/.emacs.d/wpc/wpc-misc.el @@ -221,7 +221,7 @@ ;; ancestor .gitignore files. (if (f-equal? constants-briefcase dir) (cons 'vc dir) - (when (f-parent-of? constants-briefcase dir) + (when (f-ancestor-of? constants-briefcase dir) (if (f-exists? (f-join dir "default.nix")) (cons 'transient dir) (wpc-misc--briefcase-find (f-parent dir))))))