summaryrefslogtreecommitdiff
path: root/elisp/geiser-repl.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-12-18 21:01:49 +0000
committerjao <jao@gnu.org>2021-12-18 21:06:45 +0000
commit21dcac5de1c99bbdfd81eb5de6e50fb002be4535 (patch)
tree626cafe05f62a92ade49e461bc969201f2f9694d /elisp/geiser-repl.el
parenta789a6c3132d096ac41094a81c3a2638b7a1b6fd (diff)
downloadgeiser-21dcac5de1c99bbdfd81eb5de6e50fb002be4535.tar.gz
geiser-21dcac5de1c99bbdfd81eb5de6e50fb002be4535.tar.bz2
'debug commands so that each impl can take care of them
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