[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy e869836 171/173: Added support for asynchron
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy e869836 171/173: Added support for asynchronous deployment scripts |
Date: |
Sat, 20 Oct 2018 10:36:51 -0400 (EDT) |
branch: externals/ssh-deploy
commit e8698366c4675bb6ac79b88e9382f456914c5069
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Added support for asynchronous deployment scripts
---
ssh-deploy.el | 29 ++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)
diff --git a/ssh-deploy.el b/ssh-deploy.el
index d9bbe44..a6c365a 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -3,8 +3,8 @@
;; Author: Christian Johansson <github.com/cjohansson>
;; Maintainer: Christian Johansson <github.com/cjohansson>
;; Created: 5 Jul 2016
-;; Modified: 11 Aug 2018
-;; Version: 1.96
+;; Modified: 19 Aug 2018
+;; Version: 1.97
;; Keywords: tools, convenience
;; URL: https://github.com/cjohansson/emacs-ssh-deploy
@@ -36,7 +36,7 @@
;; detection of remote changes, remote directory browsing, remote SQL database
sessions and
;; running custom deployment scripts via TRAMP.
;;
-;; For asynchrous operations it uses package async.el.
+;; For asynchronous operations it uses package `async.el'.
;;
;; By setting the variables (globally, per directory or per file):
;; ssh-deploy-root-local,ssh-deploy-root-remote, ssh-deploy-on-explicit-save
@@ -209,7 +209,7 @@
(put 'ssh-deploy-verbose 'safe-local-variable 'booleanp)
(defcustom ssh-deploy-async t
- "Boolean variable if asynchrous method for transfers should be used, t by
default."
+ "Boolean variable if asynchronous method for transfers should be used, t by
default."
:type 'boolean
:group 'ssh-deploy)
(put 'ssh-deploy-async 'permanent-local t)
@@ -283,7 +283,7 @@
:type 'lambda
:group 'ssh-deploy)
(put 'ssh-deploy-script 'permanent-local t)
-(put 'ssh-deploy-script 'safe-local-variable 'funcp)
+(put 'ssh-deploy-script 'safe-local-variable 'functionp)
(defconst ssh-deploy--status-idle 0
"The idle mode-line status.")
@@ -1323,8 +1323,23 @@
(defun ssh-deploy-run-deploy-script-handler ()
"Run `ssh-deploy-script' with `funcall'."
(interactive)
- (if (boundp 'ssh-deploy-script)
- (funcall ssh-deploy-script)
+ (if (and (boundp 'ssh-deploy-script)
+ ssh-deploy-script)
+ (if ssh-deploy-async
+ (if (fboundp 'async-start)
+ (progn
+ (message "Executing of deployment-script starting...
(asynchronously)")
+ (async-start
+ `(lambda()
+ (let ((ssh-deploy-root-local ,ssh-deploy-root-local)
+ (ssh-deploy-root-remote ,ssh-deploy-root-remote))
+ (funcall ,ssh-deploy-script)))
+ (lambda(result) (message "Completed execution of
deployment-script. '%s'(asynchronously)" result))))
+ (display-warning 'ssh-deploy "async.el is not installed" :warning))
+ (progn
+ (message "Executing of deployment-script starting...
(synchronously)")
+ (funcall ssh-deploy-script)
+ (message "Completed execution of deployment-script.
(synchronously)")))
(display-warning 'ssh-deploy (format "ssh-deploy-script lacks definition!"
type) :warning)))
- [elpa] externals/ssh-deploy 53081a3 148/173: After downloading asynchronously associated buffer is reverted, (continued)
- [elpa] externals/ssh-deploy 53081a3 148/173: After downloading asynchronously associated buffer is reverted, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy fd7abe9 143/173: Mode-line status update for asynchronously deleted file working, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy e64a454 149/173: Starting ssh-deploy-mode-line on init, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 519939d 153/173: Fixes for mode-line status as stack, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 16a22f4 157/173: More (when (not to (unless conversions, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy d9bc257 159/173: Updated version, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 5705104 155/173: Fixed issue were status list initialization was not working, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy a1dbc2f 156/173: Using unless instead of (when (not, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 8900586 163/173: Started working on support for deploy script, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy e24f69d 127/173: Fixes 'display-warning throws 'wrong-type-argument error #39, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy e869836 171/173: Added support for asynchronous deployment scripts,
Stefan Monnier <=
- [elpa] externals/ssh-deploy 0ff0f77 152/173: Using a stack for buffer status instead, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 57f8638 167/173: Fixed issue were no run script was defined, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 8ed82d6 060/173: Added force upload handler, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy b53b875 078/173: Improved remote eshell integration, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 08d5778 083/173: Added example hydra to README, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 5e0403c 085/173: Instructions for FTP in macOS 10.13, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 0d8b5de 095/173: Only open directory diff buffer if there was any differences, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 407402d 100/173: Improved documentation about interaction-free password-based authentication, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy d0b45f4 106/173: Fixed typos in readme, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 6f54fd5 110/173: Fixed bug where upload file into folder that does not exist on remote, Stefan Monnier, 2018/10/20