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

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

[nongnu] elpa/sesman 13f7748b9f 017/100: Rename sesman-single-link-conte


From: ELPA Syncer
Subject: [nongnu] elpa/sesman 13f7748b9f 017/100: Rename sesman-single-link-contexts -> sesman-single-link-context-types
Date: Tue, 28 Dec 2021 14:05:59 -0500 (EST)

branch: elpa/sesman
commit 13f7748b9f0da74d2b3f817a2c8e6d8a7d5f0c57
Author: Vitalie Spinu <spinuvit@gmail.com>
Commit: Vitalie Spinu <spinuvit@gmail.com>

    Rename sesman-single-link-contexts -> sesman-single-link-context-types
---
 README.md | 2 +-
 sesman.el | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 787f0ff6e1..c6db29d8f8 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ Consists of
 
 From the user's prospective the work-flow is as follow. Start a session, 
either with `sesman-start` (`C-c C-s C-s`) or some of the system specific 
commands (`run-xyz`, `xyz-jack-in` etc). On startup each session is 
automatically associated with the least specific context (commonly a project). 
In the most common case the user has only one session open per project. In such 
case, no ambiguity arises when a system retrieves the current session. If 
multiple sessions are associated with the cu [...]
 
-By default links with projects and directories are many-to-many in the sense 
that any session can be linked to multiple context and each context can be 
associated with multiple sessions. Buffers instead are 1-to-many. One buffer 
can be associated with only one session and a session can be associated with 
multiple buffers. This behavior is controlled by a custom 
`sesman-single-link-contexts`.
+By default links with projects and directories are many-to-many in the sense 
that any session can be linked to multiple context and each context can be 
associated with multiple sessions. Buffers instead are 1-to-many. One buffer 
can be associated with only one session and a session can be associated with 
multiple buffers. This behavior is controlled by a custom 
`sesman-single-link-context-types`.
 
 ### [System Interface][]
 
diff --git a/sesman.el b/sesman.el
index 9ea6a8b7cd..925236a0de 100644
--- a/sesman.el
+++ b/sesman.el
@@ -57,8 +57,8 @@ system's implementation, see `sesman-more-relevant-p'."
   :group 'sesman
   :type 'boolean)
 
-(defcustom sesman-single-link-contexts '(buffer)
-  "List of context types for which links should be unique."
+(defcustom sesman-single-link-context-types '(buffer)
+  "List of context types to which at most one session can be linked."
   :group 'sesman
   :type '(repeat symbol))
 
@@ -118,7 +118,7 @@ Can be either a symbol, or a function returning a symbol.")
                       (user-error "No local context of type %s" cxt-type)))
          (key (cons system ses-name))
          (link (list key cxt-type cxt-val)))
-    (if (member cxt-type sesman-single-link-contexts)
+    (if (member cxt-type sesman-single-link-context-types)
         (thread-last sesman-links-alist
           (seq-remove (sesman--link-lookup-fn system nil cxt-type cxt-val))
           (cons link)



reply via email to

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