* lisp/progmodes/project.el (project--find-in-directory):
Catch 'permission-denied' (bug#66317).
Co-Authored-By: Spencer Baugh <sbaugh@catern.com>
pr))
(defun project--find-in-directory (dir)
- (run-hook-with-args-until-success 'project-find-functions dir))
+ ;; Use 'ignore-error' when 27.1 is the minimum supported.
+ (condition-case nil
+ (run-hook-with-args-until-success 'project-find-functions dir)
+ ;; Maybe we'd like to continue to the next backend instead? Let's
+ ;; see if somebody ever ends up in that situation.
+ (permission-denied nil)))
(defvar project--within-roots-fallback nil)