[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy c58f524 141/173: Using (with-current-buffer)
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy c58f524 141/173: Using (with-current-buffer) instead of (switch-to-buffer) |
Date: |
Sat, 20 Oct 2018 10:36:46 -0400 (EDT) |
branch: externals/ssh-deploy
commit c58f5247d8c795d57af58acf19c7ab3d0c551727
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Using (with-current-buffer) instead of (switch-to-buffer)
---
ssh-deploy.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ssh-deploy.el b/ssh-deploy.el
index 70ebf43..4fd46da 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -298,9 +298,8 @@
"Set the mode line STATUS in optionally in buffer visiting FILENAME."
(if (and (boundp 'filename)
filename)
- (save-excursion
- (let ((buffer (find-buffer-visiting filename)))
- (switch-to-buffer buffer)
+ (let ((buffer (find-buffer-visiting filename)))
+ (with-current-buffer buffer
(setq ssh-deploy--mode-line-status status)
;; (message "SSH Deploy - Updated status to %s"
ssh-deploy--mode-line-status)
(ssh-deploy--mode-line-status-refresh)))
@@ -342,7 +341,8 @@
)
(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"
ssh-deploy--mode-line-status-text)
+ ))
(defun ssh-deploy--mode-line-status-text-format (text)
"Return a formatted string based on TEXT."
- [elpa] externals/ssh-deploy d5315bf 080/173: Fix syntax notices and now restores eshell buffer name, (continued)
- [elpa] externals/ssh-deploy d5315bf 080/173: Fix syntax notices and now restores eshell buffer name, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 454af97 070/173: Added delete function for files and directories, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 5cd1f80 092/173: Improved code for detecting remote changes, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy e56b316 113/173: Fixed syntax error in (cond) expression, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 5442a7e 104/173: Removed dependency package, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 99727db 125/173: Updated completed deletion messages for more salience, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy c193330 107/173: Optimized (progn) structures, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 8d99eb6 130/173: Updated version, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy cf4f5e7 133/173: Added delete shortcut to menu-bar as well, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 36b81ff 111/173: Fixed bug where async upload to new remote directory was not working, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy c58f524 141/173: Using (with-current-buffer) instead of (switch-to-buffer),
Stefan Monnier <=
- [elpa] externals/ssh-deploy 42d4d7a 150/173: Merge branch 'master' of https://github.com/cjohansson/emacs-ssh-deploy, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy b17f543 151/173: line status does not get stuck on asynchronously uploads/downloads, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy c813bbb 154/173: Improved syntax and comments for detecting remote changes, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 1d3d534 161/173: Added verbose flag to enable silencing of non-error messages, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 0e3e55e 168/173: Merge branch 'master' of https://github.com/cjohansson/emacs-ssh-deploy, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy aef539b 115/173: Create potential missing local directory when downloading file, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy c2a2be4 119/173: Naming remote SQL buffers to enable having multiple open simultaneously, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 592427e 121/173: Added support for launching remote shell sessions, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy c07b006 114/173: Replaced (file-regular-p) with (not (file-directory-p)), Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 96276c8 135/173: Added forced upload to menu-bar, Stefan Monnier, 2018/10/20