diff options
| author | Dmitry Gutov | 2020-07-06 00:50:32 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2020-07-06 00:51:24 +0300 |
| commit | bcde7952b35ced2f0cb277a32d1ae451f76b8a51 (patch) | |
| tree | e6bd9c2ed62501226f467778ef1a56c0f8c93ae2 | |
| parent | 4ca13d98c9eb81b9c5e89f77b4012c74a30ab5fd (diff) | |
| download | emacs-bcde7952b35ced2f0cb277a32d1ae451f76b8a51.tar.gz emacs-bcde7952b35ced2f0cb277a32d1ae451f76b8a51.zip | |
; Add a couple of FIXMEs
| -rw-r--r-- | lisp/progmodes/project.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 03f7c995e85..702e69ba539 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el | |||
| @@ -294,11 +294,14 @@ The directory names should be absolute. Used in the VC project | |||
| 294 | backend implementation of `project-external-roots'.") | 294 | backend implementation of `project-external-roots'.") |
| 295 | 295 | ||
| 296 | (defun project-try-vc (dir) | 296 | (defun project-try-vc (dir) |
| 297 | (let* ((backend (ignore-errors (vc-responsible-backend dir))) | 297 | (let* ((backend |
| 298 | ;; FIXME: This is slow. Cache it. | ||
| 299 | (ignore-errors (vc-responsible-backend dir))) | ||
| 298 | (root | 300 | (root |
| 299 | (pcase backend | 301 | (pcase backend |
| 300 | ('Git | 302 | ('Git |
| 301 | ;; Don't stop at submodule boundary. | 303 | ;; Don't stop at submodule boundary. |
| 304 | ;; FIXME: Cache for a shorter time. | ||
| 302 | (or (vc-file-getprop dir 'project-git-root) | 305 | (or (vc-file-getprop dir 'project-git-root) |
| 303 | (let ((root (vc-call-backend backend 'root dir))) | 306 | (let ((root (vc-call-backend backend 'root dir))) |
| 304 | (vc-file-setprop | 307 | (vc-file-setprop |