summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2001-11-06 04:44:51 +0000
committerRichard M. Stallman <rms@gnu.org>2001-11-06 04:44:51 +0000
commit2bb659660ed7aff6dab10d30e914368993c6f855 (patch)
tree1842797c94d78f21a63ee08c927f11b04ad9b14f /lisp/emacs-lisp
parentf4bb9409885a2b0b26dbaa77059d8628920530ff (diff)
downloademacs-2bb659660ed7aff6dab10d30e914368993c6f855.tar.gz
emacs-2bb659660ed7aff6dab10d30e914368993c6f855.tar.bz2
emacs-2bb659660ed7aff6dab10d30e914368993c6f855.zip
(eval-last-sexp-1): Return the value of the evaluated form.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/lisp-mode.el23
1 files changed, 12 insertions, 11 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 34321783b81..6b110dbd9f7 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -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)