[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache 9b7e7ffd2e 086/158: Rename session-type to sessi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache 9b7e7ffd2e 086/158: Rename session-type to session-origin |
Date: |
Wed, 19 Jan 2022 18:58:00 -0500 (EST) |
branch: externals/dtache
commit 9b7e7ffd2e09eb068ac0441c392c8deac61f1de1
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Rename session-type to session-origin
---
dtache-compile.el | 4 ++--
dtache-eshell.el | 2 +-
dtache-shell.el | 2 +-
dtache.el | 19 ++++++++++---------
4 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/dtache-compile.el b/dtache-compile.el
index dd8772db69..7a9d7e908b 100644
--- a/dtache-compile.el
+++ b/dtache-compile.el
@@ -47,7 +47,7 @@ Optionally enable COMINT if prefix-argument is provided."
(consp current-prefix-arg)))
(let* ((dtache-enabled t)
(dtache-session-action dtache-post-compile-session-action)
- (dtache-session-type 'compile)
+ (dtache-session-origin 'compile)
(dtache-session-mode 'create))
(compile command comint)))
@@ -58,7 +58,7 @@ Optionally EDIT-COMMAND."
(interactive "P")
(let* ((dtache-enabled t)
(dtache-session-action dtache-post-compile-session-action)
- (dtache-session-type 'compile)
+ (dtache-session-origin 'compile)
(dtache-session-mode 'create))
(recompile edit-command)))
diff --git a/dtache-eshell.el b/dtache-eshell.el
index 395d638a9a..e1fff1136c 100644
--- a/dtache-eshell.el
+++ b/dtache-eshell.el
@@ -81,7 +81,7 @@
If prefix-argument directly DETACH from the session."
(interactive "P")
- (let* ((dtache-session-type 'eshell)
+ (let* ((dtache-session-origin 'eshell)
(dtache-session-mode (if detach 'new 'create))
(dtache-eshell-command t))
(call-interactively #'eshell-send-input)))
diff --git a/dtache-shell.el b/dtache-shell.el
index 2db49ef8f6..e4043c5c1a 100644
--- a/dtache-shell.el
+++ b/dtache-shell.el
@@ -78,7 +78,7 @@ This function also makes sure that the HISTFILE is disabled
for local shells."
(defun dtache-shell-create-session (&optional detach)
"Create a session and attach to it unless DETACH."
(interactive "P")
- (let* ((dtache-session-type 'shell)
+ (let* ((dtache-session-origin 'shell)
(dtache-session-action dtache-shell-session-action)
(dtache-session-mode (if detach 'new 'create))
(comint-input-sender #'dtache-shell--create-input-sender))
diff --git a/dtache.el b/dtache.el
index 725a7e3c04..5612fb5101 100644
--- a/dtache.el
+++ b/dtache.el
@@ -63,16 +63,12 @@
"Shell to run the dtach command in.")
(defvar dtache-env nil
"The name of the `dtache' program.")
-(defvar dtache-shell-command-history nil
- "History of commands run with `dtache-shell-command'.")
(defvar dtache-max-command-length 90
"Maximum length of displayed command.")
(defvar dtache-redirect-only-regexps '()
"Regexps for commands that should be run with redirect only.")
(defvar dtache-tail-interval 2
"Interval in seconds for the update rate when tailing a session.")
-(defvar dtache-session-type nil
- "Variable to specify the origin of the session.")
(defvar dtache-notification-function #'dtache-inactive-session-notification
"Variable to specify notification function when a session becomes inactive.")
(defvar dtache-compile-hooks nil
@@ -81,14 +77,19 @@
"An alist of annotators for metadata.")
(defvar dtache-timer-configuration '(:seconds 10 :repeat 60 :function
run-with-timer)
"A property list defining how often to run a timer.")
-(defvar dtache-session-action nil
- "A property list of actions for a session.")
(defvar dtache-shell-command-action '(:attach dtache-shell-command-attach
:view dtache-view-dwim)
"Actions for a session created with `dtache-shell-command'.")
+
(defvar dtache-enabled nil)
(defvar dtache-session-mode nil
"Mode of operation for session.
Valid values are: create, new and attach")
+(defvar dtache-session-origin nil
+ "Variable to specify the origin of the session.")
+(defvar dtache-session-action nil
+ "A property list of actions for a session.")
+(defvar dtache-shell-command-history nil
+ "History of commands run with `dtache-shell-command'.")
(defvar dtache-annotation-format
`((:width 3 :function dtache--active-str :face dtache-active-face)
@@ -184,7 +185,7 @@ Valid values are: create, new and attach")
(:conc-name dtache--session-))
(id nil :read-only t)
(command nil :read-only t)
- (type nil :read-only t)
+ (origin nil :read-only t)
(working-directory nil :read-only t)
(creation-time nil :read-only t)
(session-directory nil :read-only t)
@@ -213,7 +214,7 @@ Optionally SUPPRESS-OUTPUT."
"Dtache shell command: ")
nil 'dtache-shell-command-history)
current-prefix-arg))
- (let ((dtache-session-type 'shell-command)
+ (let ((dtache-session-origin 'shell-command)
(dtache-session-action dtache-shell-command-action))
(dtache-start-session command suppress-output)))
@@ -423,7 +424,7 @@ nil before closing."
(let ((session
(dtache--session-create :id (intern (dtache--create-id command))
:command command
- :type dtache-session-type
+ :origin dtache-session-origin
:action dtache-session-action
:working-directory
(dtache-get-working-directory)
:redirect-only (dtache-redirect-only-p
command)
- [elpa] externals/dtache b2b2b6ecd1 138/158: Fix error in dtache-attach, (continued)
- [elpa] externals/dtache b2b2b6ecd1 138/158: Fix error in dtache-attach, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 28cb384d96 143/158: Update attach with fallback, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 7ddd1e29ef 146/158: Fix error on remote hosts, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 9e0acd552d 150/158: Fix typo in dtache-test-dtach-command test, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b8ab11cda6 091/158: Make sure to set current session in shell command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b1e4ead73e 094/158: Remove start-process advice, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 2c4520a3c5 015/158: Add missing variable to tail-mode, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b247ddc6dd 077/158: Rewrite dtache-dtach-command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 471a2f57c7 058/158: Update dtache-session-annotation, ELPA Syncer, 2022/01/19
- [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 <=
- [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, 2022/01/19
- [elpa] externals/dtache 2354197acb 096/158: Fix error in dtache-compile, ELPA Syncer, 2022/01/19