diff options
| author | Dmitry Gutov | 2025-01-02 18:58:40 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2025-01-02 18:58:40 +0200 |
| commit | afe776051ec84c4bb37fc20b8dcfff3b1c81018e (patch) | |
| tree | 40004b1beafdb3f3e341b78779b23639863f0e58 | |
| parent | a720458fdd0283e3b7457632070504ff8962be86 (diff) | |
| download | emacs-afe776051ec84c4bb37fc20b8dcfff3b1c81018e.tar.gz emacs-afe776051ec84c4bb37fc20b8dcfff3b1c81018e.zip | |
[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).
| -rw-r--r-- | lisp/progmodes/project.el | 4 |
1 files changed, 3 insertions, 1 deletions
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." | |||
| 848 | (cl-defmethod project-buffers ((project (head vc))) | 848 | (cl-defmethod project-buffers ((project (head vc))) |
| 849 | (let* ((root (expand-file-name (file-name-as-directory (project-root project)))) | 849 | (let* ((root (expand-file-name (file-name-as-directory (project-root project)))) |
| 850 | (modules (unless (or (project--vc-merge-submodules-p root) | 850 | (modules (unless (or (project--vc-merge-submodules-p root) |
| 851 | (project--submodule-p root)) | 851 | (condition-case nil |
| 852 | (project--submodule-p root) | ||
| 853 | (file-missing nil))) | ||
| 852 | (mapcar | 854 | (mapcar |
| 853 | (lambda (m) (format "%s%s/" root m)) | 855 | (lambda (m) (format "%s%s/" root m)) |
| 854 | (project--git-submodules)))) | 856 | (project--git-submodules)))) |