Fix #3455: wrong-number-of-args on executable-find call

executable-find's second argument was added in Emacs 27, so 26 users
would suffer this error.

Closes #3460
This commit is contained in:
Henrik Lissner 2020-06-25 15:15:17 -04:00
parent 0443eeb6a4
commit 00ebbafb96
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -154,7 +154,9 @@ And if it's a function, evaluate it."
;; `projectile-globally-ignored-directories' are respected.
(lambda (_)
(concat (format "%s . -0 -H -E .git --color=never --type file --type symlink --follow"
(or (cl-find-if (doom-rpartial #'executable-find t)
(or (cl-find-if (if EMACS27+
(doom-rpartial #'executable-find t)
#'executable-find)
'("fdfind" "fd"))
"fd"))
(cl-loop for dir in projectile-globally-ignored-directories