[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 afe776051ec: [project-vc]: Make project-buffers more consistent
From: |
Dmitry Gutov |
Subject: |
emacs-30 afe776051ec: [project-vc]: Make project-buffers more consistent with project-files |
Date: |
Thu, 2 Jan 2025 11:59:45 -0500 (EST) |
branch: emacs-30
commit afe776051ec84c4bb37fc20b8dcfff3b1c81018e
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>
[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).
---
lisp/progmodes/project.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index fdcaa2c7ddc..9907b562e72 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -848,7 +848,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))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-30 afe776051ec: [project-vc]: Make project-buffers more consistent with project-files,
Dmitry Gutov <=