From ddbd3df1243679c43855d86f4e81c54b0ea1c3d1 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Tue, 17 Jan 2017 03:23:02 +0100 Subject: Not inserting an additional \n when eval prefix is empty --- elisp/geiser-mode.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el index dd453b3..743855f 100644 --- a/elisp/geiser-mode.el +++ b/elisp/geiser-mode.el @@ -1,6 +1,6 @@ ;; geiser-mode.el -- minor mode for scheme buffers -;; Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Jose Antonio Ortega Ruiz +;; Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Jose Antonio Ortega Ruiz ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the Modified BSD License. You should @@ -156,13 +156,13 @@ With a prefix, revert the effect of `geiser-mode-eval-last-sexp-to-buffer' " (str (geiser-eval--retort-result-str ret (when will-eval-to-buffer "")))) (cond ((not will-eval-to-buffer) str) ((string= "" str)) - (err (insert - (format "\n%sERROR:%s\n" geiser-mode-eval-to-buffer-prefix - (geiser-eval--error-str err)))) - (t (progn - (push-mark) - (insert - (format "\n%s%s\n" geiser-mode-eval-to-buffer-prefix str))))))) + (err (insert (format "\n%sERROR:%s\n" + geiser-mode-eval-to-buffer-prefix + (geiser-eval--error-str err)))) + (t (progn (push-mark) + (insert (format "%s%s\n" + geiser-mode-eval-to-buffer-prefix + str))))))) (defun geiser-compile-definition (&optional and-go) "Compile the current definition in the Geiser REPL. -- cgit v1.2.3