(eval-last-sexp-1): Return the value of the evaluated form.
This commit is contained in:
parent
f4bb940988
commit
2bb659660e
1 changed files with 12 additions and 11 deletions
|
@ -482,17 +482,18 @@ With argument, print output into current buffer."
|
|||
(print-level eval-expression-print-level)
|
||||
(beg (point))
|
||||
end)
|
||||
(prin1 value)
|
||||
(setq end (point))
|
||||
(when (and (bufferp standard-output)
|
||||
(or (not (null print-length))
|
||||
(not (null print-level)))
|
||||
(not (string= unabbreviated
|
||||
(buffer-substring-no-properties beg end))))
|
||||
(last-sexp-setup-props beg end value
|
||||
unabbreviated
|
||||
(buffer-substring-no-properties beg end))
|
||||
)))))
|
||||
(prog1
|
||||
(prin1 value)
|
||||
(setq end (point))
|
||||
(when (and (bufferp standard-output)
|
||||
(or (not (null print-length))
|
||||
(not (null print-level)))
|
||||
(not (string= unabbreviated
|
||||
(buffer-substring-no-properties beg end))))
|
||||
(last-sexp-setup-props beg end value
|
||||
unabbreviated
|
||||
(buffer-substring-no-properties beg end))
|
||||
))))))
|
||||
|
||||
|
||||
(defun eval-last-sexp (eval-last-sexp-arg-internal)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue