summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elisp/geiser-guile.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index 3f8aa4b..363c061 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -124,7 +124,9 @@ This function uses `geiser-guile-init-file' if it exists."
(let ((p (point)))
(end-of-line)
(kill-region p (point)))))
- (subst-char-in-region (point-min) (point-max) ?\n ? t)
+ (goto-char (point-min))
+ (while (re-search-forward "[ \t\n\r][ \t\n\r]+" nil t)
+ (replace-match " " nil nil))
(buffer-string))
str))