branch: externals/dtache
commit b779e7071befc59188dd3e31573b912bb8709068
Author: Niklas Eklund <[email protected]>
Commit: Niklas Eklund <[email protected]>
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)