about summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-09-07T14·41+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-09-07T14·41+0100
commit12b5a10b050c60cc4845e85284f1016cd0366838 (patch)
tree4374ac544dc3edee287cc72b38edca7554111da4 /emacs
parent9773bc32ee98ff3eea19fd55903c1d84c4ba17c1 (diff)
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?`.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/wpc/wpc-misc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-misc.el b/emacs/.emacs.d/wpc/wpc-misc.el
index bdb504760ea7..46c8db8254b9 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))))))