[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache 2337bb132f 132/158: Update mode symbols
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache 2337bb132f 132/158: Update mode symbols |
Date: |
Wed, 19 Jan 2022 18:58:06 -0500 (EST) |
branch: externals/dtache
commit 2337bb132f132272cfc514b60fe83d544baea7f5
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Update mode symbols
create -> create-and-attach
new -> create
---
dtache-compile.el | 4 ++--
dtache-eshell.el | 4 ++--
dtache-shell.el | 6 +++---
dtache.el | 12 ++++++------
test/dtache-test.el | 2 +-
5 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/dtache-compile.el b/dtache-compile.el
index bbdcf77d17..96463b75bd 100644
--- a/dtache-compile.el
+++ b/dtache-compile.el
@@ -53,7 +53,7 @@ Optionally enable COMINT if prefix-argument is provided."
(let* ((dtache-enabled t)
(dtache-session-action dtache-compile-session-action)
(dtache-session-origin 'compile)
- (dtache-session-mode 'create))
+ (dtache-session-mode 'create-and-attach))
(compile command comint)))
;;;###autoload
@@ -64,7 +64,7 @@ Optionally EDIT-COMMAND."
(let* ((dtache-enabled t)
(dtache-session-action dtache-compile-session-action)
(dtache-session-origin 'compile)
- (dtache-session-mode 'create))
+ (dtache-session-mode 'create-and-attach))
(recompile edit-command)))
;;;;; Functions
diff --git a/dtache-eshell.el b/dtache-eshell.el
index 5163fadc1d..c7ab36dbf7 100644
--- a/dtache-eshell.el
+++ b/dtache-eshell.el
@@ -74,7 +74,7 @@
If prefix-argument directly DETACH from the session."
(interactive "P")
(let* ((dtache-session-origin 'eshell)
- (dtache-session-mode (if detach 'new 'create))
+ (dtache-session-mode (if detach 'create 'create-and-attach))
(dtache-enabled t)
(dtache--current-session nil))
(call-interactively #'eshell-send-input)))
@@ -108,7 +108,7 @@ If prefix-argument directly DETACH from the session."
(defun dtache-eshell--maybe-create-session ()
"Create a session if `dtache-eshell-command' value is t."
(when dtache-enabled
- (let* ((dtache-session-mode 'create)
+ (let* ((dtache-session-mode 'create-and-attach)
(dtache-session-action dtache-eshell-session-action)
(command (mapconcat #'identity
`(,eshell-last-command-name
diff --git a/dtache-shell.el b/dtache-shell.el
index 010b6387b1..5161068823 100644
--- a/dtache-shell.el
+++ b/dtache-shell.el
@@ -69,7 +69,7 @@
(interactive "P")
(let* ((dtache-session-origin 'shell)
(dtache-session-action dtache-shell-session-action)
- (dtache-session-mode (if detach 'new 'create))
+ (dtache-session-mode (if detach 'create 'create-and-attach))
(comint-input-sender #'dtache-shell--create-input-sender))
(comint-send-input)))
@@ -106,8 +106,8 @@ cluttering the comint-history with dtach commands."
(with-connection-local-variables
(let* ((command (substring-no-properties string))
(dtache-session-mode (if (dtache-attachable-command-p command)
- 'create
- 'new))
+ 'create-and-attach
+ 'create))
(dtach-command (dtache-dtach-command command t)))
(comint-simple-send proc dtach-command))))
diff --git a/dtache.el b/dtache.el
index 5f93778379..bfb1558618 100644
--- a/dtache.el
+++ b/dtache.el
@@ -511,13 +511,13 @@ Optionally SUPPRESS-OUTPUT."
(dtache-create-session command))))
(if-let ((run-in-background
(and (or suppress-output
- (eq dtache-session-mode 'new)
+ (eq dtache-session-mode 'create)
(not (dtache--session-attachable
dtache--current-session)))))
- (dtache-session-mode 'new))
+ (dtache-session-mode 'create))
(progn (setq dtache-enabled nil)
(apply #'start-file-process-shell-command
`("dtache" nil ,(dtache-dtach-command
dtache--current-session t))))
- (cl-letf* ((dtache-session-mode 'create)
+ (cl-letf* ((dtache-session-mode 'create-and-attach)
((symbol-function #'set-process-sentinel) #'ignore)
(buffer (generate-new-buffer-name
dtache--shell-command-buffer)))
(setq dtache-enabled nil)
@@ -657,7 +657,7 @@ Optionally CONCAT the command return command into a string."
Optionally CONCAT the command return command into a string."
(with-connection-local-variables
(let* ((dtache-session-mode (cond ((eq dtache-session-mode 'attach) 'attach)
- ((not (dtache--session-attachable
session)) 'new)
+ ((not (dtache--session-attachable
session)) 'create)
(t dtache-session-mode)))
(socket (dtache--session-file session 'socket t)))
(setq dtache--buffer-session session)
@@ -1006,8 +1006,8 @@ Optionally make the path LOCAL to host."
(defun dtache--dtach-arg ()
"Return dtach argument based on `dtache-session-mode'."
(pcase dtache-session-mode
- ('new "-n")
- ('create "-c")
+ ('create "-n")
+ ('create-and-attach "-c")
('attach "-a")
(_ "-n")))
diff --git a/test/dtache-test.el b/test/dtache-test.el
index 951ee9c7a4..8916fd9f79 100644
--- a/test/dtache-test.el
+++ b/test/dtache-test.el
@@ -73,7 +73,7 @@
((symbol-function #'dtache-create-session)
(lambda (_)
session)))
- (let* ((dtache-session-mode 'create)
+ (let* ((dtache-session-mode 'create-and-attach)
(expected `("-c" ,(dtache--session-file session 'socket t)
"-z" ,dtache-shell-program
"-c"
- [elpa] externals/dtache 914daabbb8 092/158: Fix regression for shell-command and compile, (continued)
- [elpa] externals/dtache 914daabbb8 092/158: Fix regression for shell-command and compile, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 3029774325 093/158: Update README, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b779e7071b 104/158: Improve dtache-detach-dwim, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 051968ec99 111/158: Update dtache extension headers, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache e1ebc053bb 116/158: Avoid saving history file for dtache-shell-command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 561f67d075 121/158: Make remove entry delete session log, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b285ac5a0f 128/158: Update version schema for sessions, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 0e0e8c6394 126/158: Update docstring, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 31d7ffd5f7 131/158: Rename redirect-only to attachable, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 3da7747fa1 130/158: Update Versions/Contributions/Credits, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 2337bb132f 132/158: Update mode symbols,
ELPA Syncer <=
- [elpa] externals/dtache 53cc38b385 137/158: Update Customization section in README, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 02ee0a9487 140/158: Utilize filenotify for remote sessions, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 90c3d1dd90 147/158: Indent all package files, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 89df9371db 145/158: Use timer only on local macOS host, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache c91ce5fd9a 151/158: Fix error on remote hosts with dtache-attach, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 3d89804c20 155/158: Improve dtache--update-session, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 6037219c0a 018/158: Update documentation, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 199c4cffaa 070/158: Update incorrect regexp for dtache-message, ELPA Syncer, 2022/01/19
- [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