[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/marginalia 3669f4d 224/241: Stop using the obsolete pro
From: |
Stefan Monnier |
Subject: |
[elpa] externals/marginalia 3669f4d 224/241: Stop using the obsolete project-roots function |
Date: |
Fri, 28 May 2021 20:49:31 -0400 (EDT) |
branch: externals/marginalia
commit 3669f4d6f552cde7a898f90a6d945511367b8a29
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Stop using the obsolete project-roots function
I don't know if you agree with this change, @minad, feel to revert if you
want to support project.el older than 0.3 for a little longer.
I also added a TODO comment describing the limitation of our project file
support, maybe that comment should be kept even if you do revert.
---
marginalia.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/marginalia.el b/marginalia.el
index 9ceb5fe..8456e7d 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-roots "project")
+(declare-function project-root "project")
(declare-function color-rgb-to-hex "color")
(declare-function color-rgb-to-hsl "color")
@@ -686,8 +686,11 @@ These annotations are skipped for remote paths."
(defun marginalia-annotate-project-file (cand)
"Annotate file CAND with its size, modification time and other attributes."
+ ;; TODO project-find-file can be called from outside all projects in
+ ;; 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 (car (project-roots project)))
+ (root (project-root project))
(file (expand-file-name cand root)))
(marginalia-annotate-file file)))
- [elpa] externals/marginalia 2a63616 148/241: update texi, (continued)
- [elpa] externals/marginalia 2a63616 148/241: update texi, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 4019935 157/241: rename virtual-buffer to consult-buffer, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 12fe439 161/241: right-fringe-width - use eq instead of =, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 327ad58 165/241: use aref instead of elt, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 5d15697 169/241: marginalia-annotate-bookmark with no front context still returns filename, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 64fe724 182/241: readme: do not use drawers to prevent export, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 2387cba 186/241: marginalia-annotate-minor-mode: Support longer lighters, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 5159256 220/241: Fix external declaration for selectrum--get-full, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia a081005 215/241: marginalia-annotate-bookmark: Truncate file names (Fix #69), Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia f89974d 222/241: Remove obsolete comment, completion system updates automatically, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 3669f4d 224/241: Stop using the obsolete project-roots function,
Stefan Monnier <=
- [elpa] externals/marginalia 445d283 234/241: README: Update helper commands (Use remq instead of delq), Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia a0e9903 237/241: Remove marginalia--annotate-binding-hash (See #16), Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia bc8e5f2 178/241: customize group: more restrictive prompt classifier, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 6caf9f0 202/241: Add link to readme (Fix #66), Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 5ce5a0e 200/241: marginalia-annotate-color: Add component letters, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 668265a 211/241: Simplify setup, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 9ca180b 026/241: richer formatting of file and buffer annotations, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 2805127 058/241: introduce a small dsl marginalia--fields which helps with formatting, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 31ba78b 072/241: add marginalia-annotate-coding-system, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 783cb49 067/241: improve marginalia-minor-mode, Stefan Monnier, 2021/05/28