[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache 1cbeb7167e 136/158: Rename magic-command to dtac
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache 1cbeb7167e 136/158: Rename magic-command to dtache-command |
Date: |
Wed, 19 Jan 2022 18:58:06 -0500 (EST) |
branch: externals/dtache
commit 1cbeb7167e879ea67689041afdf9ad5c42149f2b
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Rename magic-command to dtache-command
---
dtache.el | 8 ++++----
test/dtache-test.el | 10 +++++-----
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/dtache.el b/dtache.el
index b881466aed..35f6d19fa9 100644
--- a/dtache.el
+++ b/dtache.el
@@ -676,11 +676,11 @@ Optionally CONCAT the command return command into a
string."
,dtach-arg
,socket "-z"
,dtache-shell-program "-c"
- ,(shell-quote-argument (dtache--magic-command
session)))
+ ,(shell-quote-argument (dtache--dtache-command
session)))
" ")
`(,dtach-arg ,socket "-z"
,dtache-shell-program "-c"
- ,(dtache--magic-command session)))))))
+ ,(dtache--dtache-command session)))))))
(defun dtache-attachable-command-p (command)
"Return t if COMMAND is attachable."
@@ -1050,8 +1050,8 @@ Optionally make the path LOCAL to host."
(seq-do (lambda (pid) (dtache--kill-processes pid)) child-processes)
(apply #'process-file `("kill" nil nil nil ,pid))))
-(defun dtache--magic-command (session)
- "Return the magic dtache command for SESSION.
+(defun dtache--dtache-command (session)
+ "Return the dtache command for SESSION.
If SESSION is nonattachable fallback to a command that doesn't rely on tee."
(let* ((log (dtache--session-file session 'log t))
diff --git a/test/dtache-test.el b/test/dtache-test.el
index 1099fdd20a..e76ce98525 100644
--- a/test/dtache-test.el
+++ b/test/dtache-test.el
@@ -211,7 +211,7 @@
(dtache--db-update-entry copy t)
(should (equal copy (car (dtache--db-get-sessions)))))))
-(ert-deftest dtache-test-magic-command ()
+(ert-deftest dtache-test-dtache-command ()
(let ((attachable-session (dtache--session-create :directory "/tmp/dtache/"
:working-directory
"/home/user/"
:command "ls -la"
@@ -225,17 +225,17 @@
;; With dtache-env
(let ((dtache-env "dtache-env"))
(should (string= "{ dtache-env ls\\ -la; } 2>&1 | tee
/tmp/dtache/foo123.log"
- (dtache--magic-command attachable-session)))
+ (dtache--dtache-command attachable-session)))
(should (string= "{ dtache-env ls\\ -la; } &> /tmp/dtache/foo123.log"
- (dtache--magic-command nonattachable-session))))
+ (dtache--dtache-command nonattachable-session))))
;; Without dtache-env
(let ((dtache-env nil)
(dtache-shell-program "bash"))
(should (string= "{ bash -c ls\\ -la; } 2>&1 | tee
/tmp/dtache/foo123.log"
- (dtache--magic-command attachable-session)))
+ (dtache--dtache-command attachable-session)))
(should (string= "{ bash -c ls\\ -la; } &> /tmp/dtache/foo123.log"
- (dtache--magic-command nonattachable-session))))))
+ (dtache--dtache-command nonattachable-session))))))
(ert-deftest dtache-test-attachable-command-p ()
(let ((dtache-nonattachable-commands '("ls")))
- [elpa] externals/dtache 52c82428ac 110/158: Remove documentation directory, (continued)
- [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
- [elpa] externals/dtache 668f6aca83 157/158: Improve dtache-kill-session, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache e3af56003d 063/158: Remove unnecessary header declarations, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache dd9c2a0095 066/158: Add contributions section in README, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 59f2ac4ab5 084/158: Rename dtache--dtach-mode to dtache-session-mode, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 1cbeb7167e 136/158: Rename magic-command to dtache-command,
ELPA Syncer <=
- [elpa] externals/dtache 954b642659 074/158: Demote attach commands to functions, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 4778eda4df 085/158: Rename compile-session to post-compile-session, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 06cb91da1d 097/158: Make dtache-session-directory have a default value, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 4284951870 103/158: Make dtache-delete-sessions a command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache f34f5b8a24 105/158: Harmonize function names, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 9756c43885 114/158: Improve dtache header, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 8baeb44c30 124/158: Remove unused variable, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache c08072612f 127/158: Update rerun command with prefix argument, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache caf2fc4914 154/158: Fix incorrect time, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache f9c287a925 054/158: Make create session function public, ELPA Syncer, 2022/01/19