Commit 6849e6d5 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(eval-last-sexp-1): If standard-output

is a buffer, put a text property `printed-value' on the printed
representation, with the Lisp object printed as value.
parent 11c78113
......@@ -377,8 +377,11 @@ With argument, print output into current buffer."
expr))
(set-syntax-table stab))))))
(let ((print-length eval-expression-print-length)
(print-level eval-expression-print-level))
(prin1 value)))))
(print-level eval-expression-print-level)
(start (point)))
(prin1 value)
(when (bufferp standard-output)
(put-text-property start (point) 'printed-value value))))))
(defun eval-last-sexp (eval-last-sexp-arg-internal)
"Evaluate sexp before point; print value in minibuffer.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment