[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 0ff0f77 152/173: Using a stack for buffer st
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 0ff0f77 152/173: Using a stack for buffer status instead |
Date: |
Sat, 20 Oct 2018 10:36:48 -0400 (EDT) |
branch: externals/ssh-deploy
commit 0ff0f77c48498ce292c2ad8dfe7ef659f69462e2
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Using a stack for buffer status instead
---
ssh-deploy.el | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/ssh-deploy.el b/ssh-deploy.el
index f510730..1e3bb82 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -281,7 +281,7 @@
(defconst ssh-deploy--status-detecting-remote-changes 5
"The mode-line status for detecting remote changes.")
-(defvar ssh-deploy--mode-line-status 0
+(defvar ssh-deploy--mode-line-status '()
"The mode-line status displayed in mode-line.")
(defvar ssh-deploy--mode-line-status-text ""
@@ -301,21 +301,23 @@
(let ((buffer (find-buffer-visiting filename)))
(when buffer
(with-current-buffer buffer
- (setq ssh-deploy--mode-line-status status)
+ (push status ssh-deploy--mode-line-status)
;; (message "SSH Deploy - Updated status to %s"
ssh-deploy--mode-line-status)
(ssh-deploy--mode-line-status-refresh))))
(progn
- (setq ssh-deploy--mode-line-status status)
+ (push status ssh-deploy--mode-line-status)
;; (message "SSH Deploy - Updated status to %s"
ssh-deploy--mode-line-status)
(ssh-deploy--mode-line-status-refresh))))
-
(defun ssh-deploy--mode-line-status-refresh ()
"Refresh the status text based on the status variable."
- (ssh-deploy--mode-line-status-update ssh-deploy--mode-line-status))
+ (ssh-deploy--mode-line-status-update (pop ssh-deploy--mode-line-status)))
(defun ssh-deploy--mode-line-status-update (status)
"Update the local status text variable to a text representation based on
STATUS."
+ (when (or (not (boundp 'status))
+ (null status))
+ (setq status 10))
(let ((status-text ""))
(cond
@@ -337,7 +339,7 @@
((= status ssh-deploy--status-detecting-remote-changes)
(setq status-text "diff.."))
- (t (setq status-text "?"))
+ (t (setq status-text ""))
)
(make-local-variable 'ssh-deploy--mode-line-status-text)
- [elpa] externals/ssh-deploy fd7abe9 143/173: Mode-line status update for asynchronously deleted file working, (continued)
- [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, 2018/10/20
- [elpa] externals/ssh-deploy 0ff0f77 152/173: Using a stack for buffer status instead,
Stefan Monnier <=
- [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
- [elpa] externals/ssh-deploy 9d6d8a4 136/173: Improved comments, trying to trigger MELPA refresh, Stefan Monnier, 2018/10/20