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

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

[elpa] externals/dtache b779e7071b 104/158: Improve dtache-detach-dwim


From: ELPA Syncer
Subject: [elpa] externals/dtache b779e7071b 104/158: Improve dtache-detach-dwim
Date: Wed, 19 Jan 2022 18:58:02 -0500 (EST)

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

    Improve dtache-detach-dwim
---
 dtache.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dtache.el b/dtache.el
index 5a3567515d..84f0944b95 100644
--- a/dtache.el
+++ b/dtache.el
@@ -393,10 +393,10 @@ This command is only activated if 
`dtache--buffer-session' is set and
           ;; `dtache-shell-command' or `dtache-compile'
           (let ((kill-buffer-query-functions nil))
             (when-let ((process (get-buffer-process (current-buffer))))
-              (comint-simple-send process dtache--dtach-detach-character))
+              (comint-simple-send process dtache--dtach-detach-character)
+              (message "[detached]"))
             (setq dtache--buffer-session nil)
-            (kill-buffer-and-window)
-            (message "[detached]"))
+            (kill-buffer-and-window))
         (if (dtache--session-active-p dtache--buffer-session)
             ;; `dtache-eshell'
             (if-let ((process (and (eq major-mode 'eshell-mode)



reply via email to

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