emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/dtache c91ce5fd9a 151/158: Fix error on remote hosts wi


From: ELPA Syncer
Subject: [elpa] externals/dtache c91ce5fd9a 151/158: Fix error on remote hosts with dtache-attach
Date: Wed, 19 Jan 2022 18:58:09 -0500 (EST)

branch: externals/dtache
commit c91ce5fd9a872e07bdd96347ee2417de6bf186c2
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    Fix error on remote hosts with dtache-attach
    
    The command didn't set the default-directory so remote sessions were
    attached on localhost, which doesn't work.
---
 dtache.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dtache.el b/dtache.el
index 874f889db9..fbe85c5d67 100644
--- a/dtache.el
+++ b/dtache.el
@@ -337,6 +337,7 @@ Optionally SUPPRESS-OUTPUT."
             (dtache-tail-output session)
           (cl-letf* (((symbol-function #'set-process-sentinel) #'ignore)
                      (buffer dtache--shell-command-buffer)
+                     (default-directory (dtache--session-working-directory 
session))
                      (dtach-command (dtache-dtach-command session t)))
             (funcall #'async-shell-command dtach-command buffer)
             (with-current-buffer buffer (setq dtache--buffer-session 
dtache--current-session))))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]