[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/detached 65c661bc9c 27/38: Change detached env to text-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/detached 65c661bc9c 27/38: Change detached env to text-mode |
Date: |
Thu, 17 Nov 2022 17:57:55 -0500 (EST) |
branch: externals/detached
commit 65c661bc9c16a123123da0080dda299c9c79ccf9
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Change detached env to text-mode
---
detached.el | 15 ++++++++-------
test/detached-test.el | 4 ++--
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/detached.el b/detached.el
index a0f3095913..9806b344f2 100644
--- a/detached.el
+++ b/detached.el
@@ -245,11 +245,11 @@ Valid values are: create, new and attach")
(defvar detached-session-annotation nil
"An annotation string.")
-(defconst detached-session-version "0.9.2.1"
+(defconst detached-session-version "0.9.2.2"
"The version of `detached-session'.
This version is encoded as [package-version].[revision].")
-(defconst detached-minimum-session-version "0.9.2.1"
+(defconst detached-minimum-session-version "0.9.2.2"
"The version of `detached-session' that the package is compatible with.")
;;;;; Faces
@@ -374,6 +374,7 @@ This version is encoded as [package-version].[revision].")
(metadata nil :read-only t)
(host nil :read-only t)
(degraded nil :read-only t)
+ (text-mode nil :read-only t)
(env nil :read-only t)
(action nil :read-only t)
(local nil :read-only t)
@@ -692,7 +693,7 @@ active session. For sessions created with
`detached-compile' or
:local detached-local-session
:size 0
:directory
(detached--get-session-directory)
- :env (detached--env command)
+ :text-mode (detached--text-mode command)
:host (detached--host)
:metadata (detached-metadata)
:state 'unknown
@@ -1156,9 +1157,9 @@ This function uses the `notifications' library."
(gethash (detached-session-id session) detached--hashed-sessions)))
(defun detached-session-terminal-data-p (session)
- "Return t if SESSION is run with environment set to terminal data."
+ "Return t if SESSION is run with text mode set to terminal data."
(eq 'terminal-data
- (detached--session-env session)))
+ (detached--session-text-mode session)))
(defun detached-session-watched-p (session)
"Return t if SESSION is being watched."
@@ -1682,8 +1683,8 @@ If SESSION is degraded fallback to a command that doesn't
rely on tee."
((and (pred stringp) command) command)
(_ (error "Unable to determine script command, set
`detached-terminal-data-command' properly"))))
-(defun detached--env (command)
- "Return the environment to run in COMMAND in."
+(defun detached--text-mode (command)
+ "Return the text mode to run in COMMAND in."
(if (seq-find (lambda (regexp)
(string-match-p regexp command))
detached-plain-text-commands)
diff --git a/test/detached-test.el b/test/detached-test.el
index 069f514b14..c3da87cad0 100644
--- a/test/detached-test.el
+++ b/test/detached-test.el
@@ -283,14 +283,14 @@
:working-directory "/home/user/"
:command "ls
-la"
:degraded nil
- :env
'terminal-data
+ :text-mode
'terminal-data
:id 'foo123))
(degraded-plain-text-session
(detached--session-create :directory "/tmp/detached/"
:working-directory "/home/user/"
:command "ls
-la"
:degraded t
- :env
'plain-text
+ :text-mode
'plain-text
:id
'foo123)))
(should (string= "{ bash -c if\\ TERM\\=eterm-color\\ script\\
--quiet\\ --flush\\ --return\\ --command\\ \\\"ls\\ -la\\\"\\ /dev/null\\;\\
then\\ true\\;\\ else\\ echo\\ \\\"\\[detached-exit-code\\:\\
\\$\\?\\]\\\"\\;\\ fi; } 2>&1 | tee /tmp/detached/foo123.log"
(detached--detached-command
terminal-data-session)))
- [elpa] externals/detached 5c212b2609 05/38: Update start-detached-session, (continued)
- [elpa] externals/detached 5c212b2609 05/38: Update start-detached-session, ELPA Syncer, 2022/11/17
- [elpa] externals/detached aca448c773 19/38: Revert marks in list when widening, ELPA Syncer, 2022/11/17
- [elpa] externals/detached f70ac98dc5 21/38: Remove dtach--arg dependency, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 18c388bb48 36/38: Update attach shell command, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 88f925ee15 14/38: Add missing string-join, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 4cc2c4e40f 12/38: Add select host session completion function, ELPA Syncer, 2022/11/17
- [elpa] externals/detached d1c3861e8e 16/38: Add public function for session directory, ELPA Syncer, 2022/11/17
- [elpa] externals/detached ca0ee7e465 37/38: Add detach key to session map, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 274993d9c9 20/38: Remove 'started state, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 51858bceb7 26/38: Begin rework of how to start a session, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 65c661bc9c 27/38: Change detached env to text-mode,
ELPA Syncer <=
- [elpa] externals/detached 3dc3651e98 18/38: Add session working directory function, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 88618a9cee 17/38: Add public function for session command, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 4b3609385d 01/38: Start session rewrite, ELPA Syncer, 2022/11/17
- [elpa] externals/detached f0f9728e2c 31/38: Make local predicate private, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 09b37f681c 30/38: Add detached-with-session macro, ELPA Syncer, 2022/11/17
- [elpa] externals/detached a57a728382 22/38: Remove detached-session-mode 'attach, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 4e36d9de69 10/38: Make current session public, ELPA Syncer, 2022/11/17
- [elpa] externals/detached f896cd9777 32/38: Reformat code, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 0d607044d9 03/38: Add session started predicate, ELPA Syncer, 2022/11/17
- [elpa] externals/detached 4eb5e3e9aa 04/38: Add side effect to start command, ELPA Syncer, 2022/11/17