[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy b8468ec 004/133: Added flag for using thread
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy b8468ec 004/133: Added flag for using threads or not |
Date: |
Sat, 27 Mar 2021 14:48:32 -0400 (EDT) |
branch: externals/ssh-deploy
commit b8468ece9232946cc54b708e194820d0086b940c
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Added flag for using threads or not
---
ssh-deploy.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/ssh-deploy.el b/ssh-deploy.el
index 74dc8bd..afbf72a 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -207,6 +207,12 @@
(put 'ssh-deploy-async 'permanent-local t)
(put 'ssh-deploy-async 'safe-local-variable 'booleanp)
+(defcustom ssh-deploy-async-with-threads nil
+ "Boolean variable if asynchronous method should use threads if available,
nil by default."
+ :type 'boolean)
+(put 'ssh-deploy-async-with-threads 'permanent-local t)
+(put 'ssh-deploy-async-with-threads 'safe-local-variable 'booleanp)
+
(defcustom ssh-deploy-revision-folder "~/.ssh-deploy-revisions/"
"String variable with file name to revisions with trailing slash."
:type 'string)
@@ -302,9 +308,11 @@
;; these functions MUST not use module variables in any way.
+;; TODO This should not rely on global variable
(defun ssh-deploy--async-process (start &optional finish)
"Asynchronously do START and then optionally do FINISH."
- (if (fboundp 'make-thread)
+ (if (and (fboundp 'make-thread)
+ ssh-deploy-async-with-threads)
(make-thread (lambda()
(if start
(let ((result (funcall start)))
- [elpa] externals/ssh-deploy updated (9efc523 -> fce4ea3), Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 364a99f 003/133: Added lexical-binding as file-local variable, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy df87f38 005/133: Optimized menu-bar code, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 64e049b 001/133: Added license badge, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy b8468ec 004/133: Added flag for using threads or not,
Stefan Monnier <=
- [elpa] externals/ssh-deploy 2af7bec 007/133: Mode-line working again after changes, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy ad12e19 008/133: Run deployment script working again after lexical-binding, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy cb792e8 002/133: Added ELPA to description and changed http references to https, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 71796c3 006/133: Optimization for menu-code completed, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 6fbc09f 010/133: Various changes relating to changing optional boolean argument to, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy b93b944 009/133: Updated README for optional threading and mode-line, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d934ef8 017/133: More work on optional booleans to integers, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy edee8df 019/133: Improved documentation, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 4073f79 014/133: Updated documentation to suggest ~/.authinfo.gpg usage, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 2048399 021/133: Passing async-with-threads to directory diff, Stefan Monnier, 2021/03/27