[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sesman 0f86bd3d34 021/100: Rename sesman-ensure-linked-ses
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sesman 0f86bd3d34 021/100: Rename sesman-ensure-linked-session -> sesman-ensure-session |
Date: |
Tue, 28 Dec 2021 14:05:59 -0500 (EST) |
branch: elpa/sesman
commit 0f86bd3d34a2144e52014a4423da78d3faa7588e
Author: Vitalie Spinu <spinuvit@gmail.com>
Commit: Vitalie Spinu <spinuvit@gmail.com>
Rename sesman-ensure-linked-session -> sesman-ensure-session
---
sesman.el | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/sesman.el b/sesman.el
index 9fe6cc5ae7..adf3bc7d42 100644
--- a/sesman.el
+++ b/sesman.el
@@ -496,6 +496,12 @@ return a list of sessions, otherwise a single session."
CXT-TYPES is as in `sesman-linked-sessions'."
(car (sesman-linked-sessions system cxt-types)))
+(defun sesman-ensure-session (system &optional cxt-types)
+ "Get the most relevant linked session for SYSTEM or throw if none exists.
+CXT-TYPES is as in `sesman-linked-sessions'."
+ (or (car (sesman-linked-sessions system))
+ (user-error "No linked %s sessions" system)))
+
(defun sesman-linked-sessions (system &optional cxt-types)
"Return a list of SYSTEM sessions linked in current context.
CXT-TYPES is a list of context types to consider. Defaults to the
@@ -508,13 +514,6 @@ list returned from `sesman-context-types'."
(gethash (car assoc) sesman-sessions-hashmap))
(sesman-current-links system cxt-types))))
-(defun sesman-ensure-linked-session (system)
- "Ensure that at least one SYSTEM session is linked to the current context.
-If there is at least one linked session, return the most relevant session.
-Otherwise throw an error."
- (or (car (sesman-linked-sessions system))
- (user-error "No %s sessions linked to current context" system)))
-
(defun sesman-session-links (system session &optional as-string)
"Retrieve all links for SYSTEM's SESSION from the global `SESSION-LINKS'.
Return an alist of the form
- [nongnu] branch elpa/sesman created (now e0f555f963), ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 6aa04521eb 012/100: Add badges, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 0f6eadfb1a 004/100: Idem, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman b27755c150 003/100: Major update before cider integration, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman e83fcfd939 002/100: Add readme, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 4f52cccf26 013/100: Update readme, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman fea061de16 007/100: Add sesman menu, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman a39f0e2c1b 015/100: Add commentary, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 13f7748b9f 017/100: Rename sesman-single-link-contexts -> sesman-single-link-context-types, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 0303d66f0e 019/100: Rename link accessors --link- -> --lnk- to avoid naming confusion, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 0f86bd3d34 021/100: Rename sesman-ensure-linked-session -> sesman-ensure-session,
ELPA Syncer <=
- [nongnu] elpa/sesman 43b0c9ef2a 026/100: [Fix #4] Rename lingering sesman-ensure-linked-session, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman fb4d2784f3 025/100: Fix typo in README, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 16be56c643 032/100: Add a missing :package-version to a defcustom, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 4229e2128c 027/100: Replace a redundant let*, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 9ec1c330a6 034/100: Fix typo sesman-more-relevant-p -> sesman-more-recent-p, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman e340810e82 030/100: Refer to a few commands with the #' notation, ELPA Syncer, 2021/12/28
- [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