]> git.eshelyaron.com Git - emacs.git/commitdiff
(eval-expression): Bind standard-output in to-buffer case.
authorRichard M. Stallman <rms@gnu.org>
Mon, 22 Sep 2003 15:11:02 +0000 (15:11 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 22 Sep 2003 15:11:02 +0000 (15:11 +0000)
lisp/simple.el

index ed2d57150ba566579cc47a792c15447519051078..b0d5f7295f9feecb8228ea5dfcccf38f44d8ea77 100644 (file)
@@ -663,7 +663,8 @@ the echo area."
        (print-level eval-expression-print-level))
     (if eval-expression-insert-value
        (with-no-warnings
-        (eval-last-sexp-print-value (car values)))
+        (let ((standard-output (current-buffer)))
+          (eval-last-sexp-print-value (car values))))
       (prin1 (car values) t))))
 
 (defun edit-and-eval-command (prompt command)