From: Dmitry Gutov Date: Thu, 2 Jan 2025 16:58:40 +0000 (+0200) Subject: [project-vc]: Make project-buffers more consistent with project-files X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f0ffd89d5f587f9319f322ebf86a20fe292fcf26;p=emacs.git [project-vc]: Make project-buffers more consistent with project-files * lisp/progmodes/project.el (project-buffers): Catch 'file-missing' error to continue anyway if .git does not exist (bug#74826). (cherry picked from commit afe776051ec84c4bb37fc20b8dcfff3b1c81018e) --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index aa0fad360da..80cf822e4d3 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -852,7 +852,9 @@ DIRS must contain directory names." (cl-defmethod project-buffers ((project (head vc))) (let* ((root (expand-file-name (file-name-as-directory (project-root project)))) (modules (unless (or (project--vc-merge-submodules-p root) - (project--submodule-p root)) + (condition-case nil + (project--submodule-p root) + (file-missing nil))) (mapcar (lambda (m) (format "%s%s/" root m)) (project--git-submodules))))