[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/markdown-mode 8a838d0 1/2: Silence byte-compiler
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/markdown-mode 8a838d0 1/2: Silence byte-compiler |
Date: |
Thu, 4 Feb 2021 18:57:07 -0500 (EST) |
branch: elpa/markdown-mode
commit 8a838d0c780eff57aaea464e5d2a12d0759adfcf
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Silence byte-compiler
Starting with project v0.3.0 `project-roots` is obsolete
and `project-root` should be used instead.
---
markdown-mode.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/markdown-mode.el b/markdown-mode.el
index e0eec96..6568b3d 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -7865,7 +7865,11 @@ The location of the alias component depends on the value
of
return it)
(progn
(require 'project)
- (car (project-roots (project-current t))))))
+ (let ((project (project-current t)))
+ (with-no-warnings
+ (if (fboundp 'project-root)
+ (project-root project)
+ (car (project-roots project))))))))
(defun markdown-convert-wiki-link-to-filename (name)
"Generate a filename from the wiki link NAME.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/markdown-mode 8a838d0 1/2: Silence byte-compiler,
ELPA Syncer <=