emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/marginalia d1b836d 225/241: Go back to obsolete functio


From: Stefan Monnier
Subject: [elpa] externals/marginalia d1b836d 225/241: Go back to obsolete function project-roots
Date: Fri, 28 May 2021 20:49:31 -0400 (EDT)

branch: externals/marginalia
commit d1b836db16cb693293a2cb7064e5cf9df625df2a
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>

    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)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]