summaryrefslogtreecommitdiff
path: root/lisp/simple.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-01-22 23:53:56 -0800
committerGlenn Morris <rgm@gnu.org>2014-01-22 23:53:56 -0800
commit1670e27f383c96eb19bb2049c760a8bd5d2eec12 (patch)
treed8abc0e3e63731801d3c8b0ae562fcc20601043c /lisp/simple.el
parent51fb39ec639a79f3fdcc378f5d99b0703a57e317 (diff)
downloademacs-1670e27f383c96eb19bb2049c760a8bd5d2eec12.tar.gz
emacs-1670e27f383c96eb19bb2049c760a8bd5d2eec12.tar.bz2
emacs-1670e27f383c96eb19bb2049c760a8bd5d2eec12.zip
Doc fixes related to zero prefix argument of eval-expression etc
* emacs-lisp/lisp-mode.el (eval-print-last-sexp, eval-last-sexp): * simple.el (eval-expression): Doc fixes.
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el21
1 files changed, 11 insertions, 10 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index aacd3ccf1ca..5eb0a04471f 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1396,17 +1396,18 @@ display the result of expression evaluation."
;; for the sake of completion of names like eval-region, eval-buffer.
(defun eval-expression (exp &optional insert-value)
"Evaluate EXP and print value in the echo area.
-When called interactively, read an Emacs Lisp expression and
-evaluate it.
+When called interactively, read an Emacs Lisp expression and evaluate it.
Value is also consed on to front of the variable `values'.
-Optional argument INSERT-VALUE non-nil (interactively,
-with prefix argument) means insert the result into the current buffer
-instead of printing it in the echo area. With a zero prefix arg,
-insert the result with no limit on the length and level of lists,
-and include additional formats for integers (octal, hexadecimal,
-and character). Truncates long output according to the value
-of the variables `eval-expression-print-length'
-and `eval-expression-print-level'.
+Optional argument INSERT-VALUE non-nil (interactively, with prefix
+argument) means insert the result into the current buffer instead of
+printing it in the echo area.
+
+Normally, this function truncates long output according to the value
+of the variables `eval-expression-print-length' and
+`eval-expression-print-level'. With a prefix argument of zero,
+however, there is no such truncation. Such a prefix argument
+also causes integers to be printed in several additional formats
+\(octal, hexadecimal, and character).
If `eval-expression-debug-on-error' is non-nil, which is the default,
this command arranges for all errors to enter the debugger."