[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache 34c7d23346 088/158: Make dtache-eshell compatibl
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache 34c7d23346 088/158: Make dtache-eshell compatible with recent changes |
Date: |
Wed, 19 Jan 2022 18:58:01 -0500 (EST) |
branch: externals/dtache
commit 34c7d233461a3c4fcfc8b3289c7f49b2fbed8c69
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Make dtache-eshell compatible with recent changes
---
dtache-eshell.el | 20 +++++++++-----------
dtache.el | 2 +-
2 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/dtache-eshell.el b/dtache-eshell.el
index e1fff1136c..fe2542b924 100644
--- a/dtache-eshell.el
+++ b/dtache-eshell.el
@@ -32,8 +32,7 @@
;;;; Variables
-(defvar dtache-eshell-command nil)
-(defvar dtache-shell-session-action '(:attach dtache-shell-command-attach
:view dtache-view-dwim))
+(defvar dtache-eshell-session-action '(:attach dtache-shell-command-attach
:view dtache-view-dwim))
;;;; Functions
@@ -54,18 +53,16 @@
(dtache-completing-read sessions)))
(defun dtache-eshell-maybe-create-session ()
- "Create a session if `dtache-eshell-command' value is t."
- (when dtache-eshell-command
+ "Create a session if `dtache-enabled' value is t."
+ (when dtache-enabled
(let* ((dtache-session-mode 'create)
- (dtache-session-action dtache-shell-session-action)
+ (dtache-session-action dtache-eshell-session-action)
(command (mapconcat #'identity
`(,eshell-last-command-name
,@eshell-last-arguments)
- " "))
- (session (dtache-create-session command)))
- (setq eshell-last-arguments (dtache-dtach-command session))
- (setq dtache--buffer-session session))
- (setq eshell-last-command-name "dtach")))
+ " ")))
+ (setq dtache--current-session (dtache-create-session command))
+ (setq dtache--buffer-session dtache--current-session))))
(defun dtache-eshell-get-dtach-process ()
"Return `eshell' process if `dtache' is running."
@@ -83,7 +80,8 @@ If prefix-argument directly DETACH from the session."
(interactive "P")
(let* ((dtache-session-origin 'eshell)
(dtache-session-mode (if detach 'new 'create))
- (dtache-eshell-command t))
+ (dtache-enabled t)
+ (dtache--current-session nil))
(call-interactively #'eshell-send-input)))
;;;###autoload
diff --git a/dtache.el b/dtache.el
index 2dc2a34c5d..207c60bdd3 100644
--- a/dtache.el
+++ b/dtache.el
@@ -456,7 +456,7 @@ Optionally SUPPRESS-OUTPUT."
(and (not (eq dtache-session-mode 'attach))
(or suppress-output
(eq dtache-session-mode 'new)
- (dtache-redirect-only-p command))))
+ (dtache--session-redirect-only
dtache--current-session))))
(dtache-session-mode 'new))
(apply #'start-file-process-shell-command
`("dtache" nil ,command))
- [elpa] externals/dtache e3a12a9dc8 073/158: Add connection local variable to timer, (continued)
- [elpa] externals/dtache e3a12a9dc8 073/158: Add connection local variable to timer, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 9b7e7ffd2e 086/158: Rename session-type to session-origin, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache e8bc20f563 095/158: Fix error in dtache-shell-command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache c40f0b2203 102/158: Make some public functions private, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 9c16dd3751 109/158: Update active to state, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 3cc493e6b0 115/158: Add missing dtache-log-mode to detach-dwim, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache ebf9b491bd 117/158: Add variable for dtache-shell-command buffer, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache e9f6794621 129/158: Rename log-directory to directory, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 3969524f23 125/158: Improve dtache session header, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache e0a45c055c 133/158: Address error in eshell/shell extension, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 34c7d23346 088/158: Make dtache-eshell compatible with recent changes,
ELPA Syncer <=
- [elpa] externals/dtache 2354197acb 096/158: Fix error in dtache-compile, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 5da693be75 100/158: Update CHANGELOG, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 0c8241a33d 107/158: Update actions from defvar to defcustom, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 848f3a943a 108/158: Update attach naming, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 52c82428ac 110/158: Remove documentation directory, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 9f948349a3 112/158: Rename dtache-detach to dtache-detach-dwim, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 4c47fa3ddb 122/158: Fix error in dtache-attach, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 71d7e3ad35 119/158: Update how duration is determined, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 5d78cfb3b3 142/158: Add attach command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 94f207eeeb 149/158: Make dtache utilize notifications library, ELPA Syncer, 2022/01/19