[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy b483b3e 117/173: Improved handling of changi
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy b483b3e 117/173: Improved handling of changing directory using let |
Date: |
Sat, 20 Oct 2018 10:36:41 -0400 (EDT) |
branch: externals/ssh-deploy
commit b483b3e655f09571fea6c488599265ae7c09f68c
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>
Improved handling of changing directory using let
---
ssh-deploy.el | 20 ++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/ssh-deploy.el b/ssh-deploy.el
index 77e4d01..2edf967 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -750,14 +750,12 @@
;;;### autoload
(defun ssh-deploy-remote-sql (remote-path &optional type)
"Open remote sql on REMOTE-PATH, TYPE determines type and defaults to mysql."
- (let ((buffer (generate-new-buffer (format "ssh-deploy-sql-mysql-%s"
remote-path)))
- (sql-type (or type "mysql"))
+ (let ((sql-type (or type "mysql"))
(old-ssh-deploy-remote-sql-database ssh-deploy-remote-sql-database)
(old-ssh-deploy-remote-sql-password ssh-deploy-remote-sql-password)
(old-ssh-deploy-remote-sql-server ssh-deploy-remote-sql-server)
- (old-ssh-deploy-remote-sql-user ssh-deploy-remote-sql-user))
- (switch-to-buffer buffer)
- (cd remote-path)
+ (old-ssh-deploy-remote-sql-user ssh-deploy-remote-sql-user)
+ (default-directory remote-path))
(set (make-local-variable 'sql-database)
old-ssh-deploy-remote-sql-database)
(set (make-local-variable 'sql-password)
old-ssh-deploy-remote-sql-password)
(set (make-local-variable 'sql-server) old-ssh-deploy-remote-sql-server)
@@ -793,16 +791,10 @@
(fboundp 'eshell-send-input))
(progn
(message "Opening eshell on '%s'.." path-remote)
- (defvar eshell-buffer-name)
- (let ((old-eshell-buffer-name eshell-buffer-name))
+ (let ((default-directory path-remote))
+ (defvar eshell-buffer-name)
(setq eshell-buffer-name path-remote)
- (let ((eshell-buffer (eshell)))
- (goto-char (point-max))
- (eshell-kill-input)
- (insert (concat "cd " path-remote))
- (eshell-send-input)
- (goto-char (point-max))
- (setq eshell-buffer-name old-eshell-buffer-name))))
+ (eshell)))
(message "Missing required eshell functions")))))))
;;;### autoload
- [elpa] externals/ssh-deploy 5d70d89 102/173: Improved documentation, (continued)
- [elpa] externals/ssh-deploy 5d70d89 102/173: Improved documentation, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 4a9dfb6 105/173: Added feature to open corresponding file on remote, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy d8153b9 134/173: Improved configuration examples, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 3b69647 065/173: Whitespace fix, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy 9107add 079/173: Fixed code notices in new code related to eshell integration, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy d117b9b 090/173: Improved documentation, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy af7f33c 082/173: Launch eshell and dired in base or current directory, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy ee808ac 098/173: Fixed whitespace in readme, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy ab4b80e 096/173: Detection for remote changes doesn't apply to directories, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy c65d282 087/173: Removed tramp-term functionality, supports native TRAMP strings, Stefan Monnier, 2018/10/20
- [elpa] externals/ssh-deploy b483b3e 117/173: Improved handling of changing directory using let,
Stefan Monnier <=
- [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, 2018/10/20