[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 519939d 153/173: Fixes for mode-line status
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 519939d 153/173: Fixes for mode-line status as stack |
Date: |
Sat, 20 Oct 2018 10:36:48 -0400 (EDT) |
branch: externals/ssh-deploy
commit 519939d2cb02a69ea3e79ed7f79513de6fc09272
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Fixes for mode-line status as stack
---
ssh-deploy.el | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/ssh-deploy.el b/ssh-deploy.el
index 1e3bb82..aa10676 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -281,6 +281,9 @@
(defconst ssh-deploy--status-detecting-remote-changes 5
"The mode-line status for detecting remote changes.")
+(defconst ssh-deploy--status-undefined 10
+ "The mode-line undefined status.")
+
(defvar ssh-deploy--mode-line-status '()
"The mode-line status displayed in mode-line.")
@@ -301,23 +304,30 @@
(let ((buffer (find-buffer-visiting filename)))
(when buffer
(with-current-buffer buffer
+ (when (not (listp 'ssh-deploy--mode-line-status))
+ (setq ssh-deploy--mode-line-status '()))
(push status ssh-deploy--mode-line-status)
- ;; (message "SSH Deploy - Updated status to %s"
ssh-deploy--mode-line-status)
+ ;; (message "SSH Deploy - Updated status to: %s"
ssh-deploy--mode-line-status)
(ssh-deploy--mode-line-status-refresh))))
(progn
+ (when (not (listp 'ssh-deploy--mode-line-status))
+ (setq ssh-deploy--mode-line-status '()))
(push status ssh-deploy--mode-line-status)
- ;; (message "SSH Deploy - Updated status to %s"
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 (pop ssh-deploy--mode-line-status)))
+ (let ((status (pop ssh-deploy--mode-line-status)))
+ ;; (message "SSH Deploy - Refreshing status based on: %s" status)
+ (ssh-deploy--mode-line-status-update status)))
-(defun ssh-deploy--mode-line-status-update (status)
+(defun ssh-deploy--mode-line-status-update (&optional status)
"Update the local status text variable to a text representation based on
STATUS."
(when (or (not (boundp 'status))
- (null status))
- (setq status 10))
+ (not status))
+ ;; (message "SSH Deploy -Resetting status: %s" status)
+ (setq status ssh-deploy--status-undefined))
(let ((status-text ""))
(cond
@@ -344,7 +354,7 @@
)
(make-local-variable 'ssh-deploy--mode-line-status-text)
(setq ssh-deploy--mode-line-status-text
(ssh-deploy--mode-line-status-text-format status-text))
- ;; (message "SSH Deploy - Updated status text to %s"
ssh-deploy--mode-line-status-text)
+ ;; (message "SSH Deploy - Updated status text to: '%s' from: %d"
ssh-deploy--mode-line-status-text status)
))
(defun ssh-deploy--mode-line-status-text-format (text)
- [elpa] externals/ssh-deploy b483b3e 117/173: Improved handling of changing directory using let, (continued)
- [elpa] externals/ssh-deploy b483b3e 117/173: Improved handling of changing directory using let, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy b62abf2 073/173: Improved code structure and improved documentation, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 810106a 093/173: Added feature to diff directories and fixed a bug, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy d1d68b9 128/173: Started with new menu in menu-bar, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 6134cd3 122/173: Added instructors for using remote shell terminal, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy c84f56c 131/173: Added Open command to menu as well, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy d0be946 124/173: Improved the salience of completion messages, Stefan Monnier, 2018/10/20
- [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 <=
- [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, 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