summaryrefslogtreecommitdiff
path: root/elisp/geiser-racket.el
diff options
context:
space:
mode:
Diffstat (limited to 'elisp/geiser-racket.el')
-rw-r--r--elisp/geiser-racket.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/elisp/geiser-racket.el b/elisp/geiser-racket.el
index ff7b738..6e2de6b 100644
--- a/elisp/geiser-racket.el
+++ b/elisp/geiser-racket.el
@@ -213,13 +213,12 @@ This function uses `geiser-racket-init-file' if it exists."
(when msg
(let ((p (point)))
(insert msg)
- (when key
- (let ((end (point)))
+ (let ((end (point)))
(goto-char p)
- (geiser-racket--purge-trace)
+ (when key (geiser-racket--purge-trace))
(mapc 'geiser-edit--buttonize-files geiser-racket--file-rxs)
(goto-char end)
- (newline)))))
+ (newline))))
(or key (not (zerop (length msg)))))