From: Nicolas Richard Date: Wed, 25 Feb 2015 12:07:43 +0000 (+0100) Subject: lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp): Document argument. X-Git-Tag: emacs-25.0.90~2564^2~293 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ca5790eb50db4511ecd987559b91f0509ffe61e5;p=emacs.git lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp): Document argument. Fixes: 19932 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f1dd8db5298..7f7eac64b6e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2015-02-25 Nicolas Richard + + * progmodes/elisp-mode.el (elisp--eval-last-sexp): Document argument. + 2015-02-25 Oleh Krehel * emacs-lisp/check-declare.el (check-declare-warn): Use diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index b2c5fbfe60e..29f1ee9a98c 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -883,10 +883,11 @@ If CHAR is not a character, return nil." (defun elisp--eval-last-sexp (eval-last-sexp-arg-internal) "Evaluate sexp before point; print value in the echo area. -With argument, print output into current buffer. -With a zero prefix arg, print output with no limit on the length -and level of lists, and include additional formats for integers -\(octal, hexadecimal, and character)." +If EVAL-LAST-SEXP-ARG-INTERNAL is non-nil, print output into +current buffer. If EVAL-LAST-SEXP-ARG-INTERNAL is `0', print +output with no limit on the length and level of lists, and +include additional formats for integers \(octal, hexadecimal, and +character)." (let ((standard-output (if eval-last-sexp-arg-internal (current-buffer) t))) ;; Setup the lexical environment if lexical-binding is enabled. (elisp--eval-last-sexp-print-value