branch: externals/marginalia
commit d1b836db16cb693293a2cb7064e5cf9df625df2a
Author: Omar Antolín <[email protected]>
Commit: Omar Antolín <[email protected]>
Go back to obsolete function project-roots
This is so people who don't update project.el for some reason can still use
the project-file annotators.
---
marginalia.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/marginalia.el b/marginalia.el
index 8456e7d..ad05609 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -258,7 +258,7 @@ determine it."
(declare-function package-desc-version "package")
(declare-function package-version-join "package")
(declare-function project-current "project")
-(declare-function project-root "project")
+(declare-function project-roots "project")
(declare-function color-rgb-to-hex "color")
(declare-function color-rgb-to-hsl "color")
@@ -690,7 +690,7 @@ These annotations are skipped for remote paths."
;; which case it prompts for a project first; we don't support that
;; case yet, since there is no current project.
(when-let ((project (project-current))
- (root (project-root project))
+ (root (car (project-roots project)))
(file (expand-file-name cand root)))
(marginalia-annotate-file file)))