[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sesman f3975de11a 038/100: Remove dependency on project.el
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sesman f3975de11a 038/100: Remove dependency on project.el |
Date: |
Tue, 28 Dec 2021 14:06:00 -0500 (EST) |
branch: elpa/sesman
commit f3975de11a4d64ad0d7533f66ee4892ff0516624
Author: Vitalie Spinu <spinuvit@gmail.com>
Commit: Vitalie Spinu <spinuvit@gmail.com>
Remove dependency on project.el
---
sesman.el | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/sesman.el b/sesman.el
index 27707d60b1..fbc37a558b 100644
--- a/sesman.el
+++ b/sesman.el
@@ -725,8 +725,6 @@ buffers."
;;; Contexts
-(require 'project)
-
(cl-defgeneric sesman-context (_cxt-type)
"Given context type CXT-TYPE return the context.")
(cl-defmethod sesman-context ((_cxt-type (eql buffer)))
@@ -739,10 +737,11 @@ buffers."
"Return current project."
(or
(sesman-project (sesman--system))
- (progn
- (let ((proj (project-current)))
- (when proj
- (car (project-roots proj)))))))
+ ;; Normally we would use (project-roots (project-current)) but currently
+ ;; project-roots fails on nil and doesn't work on custom `('foo .
+ ;; "path/to/project"). So, use vc as a fallback and don't use project.el at
+ ;; all for now.
+ (vc-root-dir)))
(cl-defgeneric sesman-relevant-context-p (_cxt-type cxt)
"Non-nil if context CXT is relevant to current context of type CXT-TYPE.")
- [nongnu] elpa/sesman ae94cee124 033/100: [Fix #3] Remove outdated links from readme and add link to CIDER implementation, (continued)
- [nongnu] elpa/sesman ae94cee124 033/100: [Fix #3] Remove outdated links from readme and add link to CIDER implementation, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 77ca42e33c 037/100: Add tests, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman d4b8a12249 036/100: Allow prompting for context in sesman-link-with-xyz commands, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 269bdd26b4 028/100: Fix the autoload cookies, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 4f9aea1b6c 047/100: Keep sesman--format-session-objects for minibuffer info only, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 5c34b3669b 031/100: Add a link to the GitHub repo, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 30ec72e2fe 053/100: [Fix #5] Implement session-browser, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman a428dc955c 050/100: Improve readable of sesman-grouped-links, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 92a4c0a168 045/100: Add sesman-post-command-hook, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 73d726499f 060/100: Bump the development version, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman f3975de11a 038/100: Remove dependency on project.el,
ELPA Syncer <=
- [nongnu] elpa/sesman 9e16e21fc4 055/100: Add white space cleaner to dir-locals, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman e3adc450af 052/100: Run hooks in sesman-unlink, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 796a214e1f 058/100: Typo, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman c81565a88b 071/100: Version 0.3, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman d403a84746 069/100: Put back separator in info display, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman cdf0064408 067/100: Use -face in face names, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 563ebeaafb 098/100: Fix broken link in README.md, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 26931e1e64 094/100: Add menu for browser, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman b16ba94386 097/100: Make sesman-unlink to take optional LINKS argument (#22), ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman e0f555f963 100/100: Rename sesman-get-system and defalias sesman--system, ELPA Syncer, 2021/12/28