aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet
diff options
context:
space:
mode:
authorDmitry Gutov2020-05-23 04:38:27 +0300
committerDmitry Gutov2020-05-23 04:54:42 +0300
commit5044c19001fe608f2eac621add2e05cbca6c804b (patch)
tree386c9c390c0ee739fc8584b9c297505fd56c46df /lisp/cedet
parent813e42c63bcd9f285daae6737c4ae7a9adae90d7 (diff)
downloademacs-5044c19001fe608f2eac621add2e05cbca6c804b.tar.gz
emacs-5044c19001fe608f2eac621add2e05cbca6c804b.zip
project.el: A project has only one main root now
Practice shows that the vast majority of projects only use one main root. The users of this API very often make this assumption as well. The rest of the "roots" should be possible to express through project-external-roots. * lisp/progmodes/project.el: Update the commentary. Only 4 non-obsolete generics now. (project-root): Replacement for `project-roots'. All callers updated. Implementations too. (project-roots): Declare obsolete. (project-external-roots): Simplify the docstring. (project-ignores): Update the docstring. (project-find-regexp): Omit the second arg to project-files. (project--dir-ignores): Simplify. (project-compile): Simplify, remove outdated comment. * lisp/cedet/ede.el: Add a FIXME.
Diffstat (limited to 'lisp/cedet')
-rw-r--r--lisp/cedet/ede.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/cedet/ede.el b/lisp/cedet/ede.el
index 8c336117c92..41252815734 100644
--- a/lisp/cedet/ede.el
+++ b/lisp/cedet/ede.el
@@ -1515,8 +1515,11 @@ It does not apply the value to buffers."
1515 (when project-dir 1515 (when project-dir
1516 (ede-directory-get-open-project project-dir 'ROOT)))) 1516 (ede-directory-get-open-project project-dir 'ROOT))))
1517 1517
1518(cl-defmethod project-roots ((project ede-project)) 1518(cl-defmethod project-root ((project ede-project))
1519 (list (ede-project-root-directory project))) 1519 (ede-project-root-directory project))
1520
1521;;; FIXME: Could someone look into implementing `project-ignores' for
1522;;; EDE and/or a faster `project-files'?
1520 1523
1521(add-hook 'project-find-functions #'project-try-ede) 1524(add-hook 'project-find-functions #'project-try-ede)
1522 1525