summaryrefslogtreecommitdiff
path: root/elisp/geiser-repl.el
diff options
context:
space:
mode:
Diffstat (limited to 'elisp/geiser-repl.el')
-rw-r--r--elisp/geiser-repl.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index 58fa810..3fd9f92 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -694,8 +694,11 @@ If SAVE-HISTORY is non-nil, save CMD in the REPL history."
(setq geiser-repl--repls (remove cb geiser-repl--repls))
(unless (eq cb geiser-repl--connection-buffer)
(when (buffer-live-p geiser-repl--connection-buffer)
+ (kill-buffer geiser-repl--connection-buffer)
(setq geiser-repl--connection-buffer nil)
- (kill-buffer geiser-repl--connection-buffer)))
+ (when-let (a (geiser-repl--connection-address
+ geiser-impl--implementation))
+ (delete-file a))))
(dolist (buffer (buffer-list))
(when (buffer-live-p buffer)
(with-current-buffer buffer