aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2018-07-06 12:31:51 +0300
committerEli Zaretskii2018-07-06 12:31:51 +0300
commit4abf94fa3bfc9d03423c80b7ceab82905a4e3baa (patch)
tree58248d762a8c701f85247b0641efc3c22043e636
parent6cfc7a7b1bc3989e6d2cc271222ff7ce4eb23b5e (diff)
downloademacs-4abf94fa3bfc9d03423c80b7ceab82905a4e3baa.tar.gz
emacs-4abf94fa3bfc9d03423c80b7ceab82905a4e3baa.zip
Clarify and improve doc strings of 'eval-last-sexp' and friends
* lisp/simple.el (eval-expression, eval-expression-print-format): * lisp/progmodes/elisp-mode.el (eval-last-sexp): Doc fixes. (Bug#32064)
-rw-r--r--lisp/progmodes/elisp-mode.el10
-rw-r--r--lisp/simple.el8
2 files changed, 9 insertions, 9 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 8fe6ef0550b..91d05ce6983 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -1189,11 +1189,11 @@ current buffer.
1189Normally, this function truncates long output according to the 1189Normally, this function truncates long output according to the
1190value of the variables `eval-expression-print-length' and 1190value of the variables `eval-expression-print-length' and
1191`eval-expression-print-level'. With a prefix argument of zero, 1191`eval-expression-print-level'. With a prefix argument of zero,
1192however, there is no such truncation. Such a prefix argument 1192however, there is no such truncation.
1193also causes integers to be printed in several additional formats 1193Integer values are printed in several formats (decimal, octal,
1194\(octal, hexadecimal, and character when the prefix argument is 1194and hexadecimal). When the prefix argument is -1 or the value
1195-1 or the integer is `eval-expression-print-maximum-character' or 1195doesn't exceed `eval-expression-print-maximum-character', an
1196less). 1196integer value is also printed as a character of that codepoint.
1197 1197
1198If `eval-expression-debug-on-error' is non-nil, which is the default, 1198If `eval-expression-debug-on-error' is non-nil, which is the default,
1199this command arranges for all errors to enter the debugger." 1199this command arranges for all errors to enter the debugger."
diff --git a/lisp/simple.el b/lisp/simple.el
index cbad75193a4..8b183469f8a 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1471,9 +1471,9 @@ This affects printing by `eval-expression' (via
1471 :version "26.1") 1471 :version "26.1")
1472 1472
1473(defun eval-expression-print-format (value) 1473(defun eval-expression-print-format (value)
1474 "If VALUE in an integer, return a specially formatted string. 1474 "If VALUE is an integer, return a specially formatted string.
1475This string will typically look like \" (#o1, #x1, ?\\C-a)\". 1475This string will typically look like \" (#o1, #x1, ?\\C-a)\".
1476If VALUE is not an integer, nil is returned. 1476If VALUE is not an integer, return nil.
1477This function is used by commands like `eval-expression' that 1477This function is used by commands like `eval-expression' that
1478display the result of expression evaluation." 1478display the result of expression evaluation."
1479 (when (integerp value) 1479 (when (integerp value)
@@ -1534,11 +1534,11 @@ non-nil (interactively, with a prefix argument of zero), however,
1534there is no such truncation. 1534there is no such truncation.
1535 1535
1536If the resulting value is an integer, and CHAR-PRINT-LIMIT is 1536If the resulting value is an integer, and CHAR-PRINT-LIMIT is
1537non-nil (interactively, unless given a positive prefix argument) 1537non-nil (interactively, unless given a non-zero prefix argument)
1538it will be printed in several additional formats (octal, 1538it will be printed in several additional formats (octal,
1539hexadecimal, and character). The character format is only used 1539hexadecimal, and character). The character format is only used
1540if the value is below CHAR-PRINT-LIMIT (interactively, if the 1540if the value is below CHAR-PRINT-LIMIT (interactively, if the
1541prefix argument is -1 or the value is below 1541prefix argument is -1 or the value doesn't exceed
1542`eval-expression-print-maximum-character'). 1542`eval-expression-print-maximum-character').
1543 1543
1544Runs the hook `eval-expression-minibuffer-setup-hook' on entering the 1544Runs the hook `eval-expression-minibuffer-setup-hook' on entering the