diff options
| author | Eli Zaretskii | 2018-07-06 12:31:51 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-07-06 12:31:51 +0300 |
| commit | 4abf94fa3bfc9d03423c80b7ceab82905a4e3baa (patch) | |
| tree | 58248d762a8c701f85247b0641efc3c22043e636 | |
| parent | 6cfc7a7b1bc3989e6d2cc271222ff7ce4eb23b5e (diff) | |
| download | emacs-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.el | 10 | ||||
| -rw-r--r-- | lisp/simple.el | 8 |
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. | |||
| 1189 | Normally, this function truncates long output according to the | 1189 | Normally, this function truncates long output according to the |
| 1190 | value of the variables `eval-expression-print-length' and | 1190 | value 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, |
| 1192 | however, there is no such truncation. Such a prefix argument | 1192 | however, there is no such truncation. |
| 1193 | also causes integers to be printed in several additional formats | 1193 | Integer values are printed in several formats (decimal, octal, |
| 1194 | \(octal, hexadecimal, and character when the prefix argument is | 1194 | and hexadecimal). When the prefix argument is -1 or the value |
| 1195 | -1 or the integer is `eval-expression-print-maximum-character' or | 1195 | doesn't exceed `eval-expression-print-maximum-character', an |
| 1196 | less). | 1196 | integer value is also printed as a character of that codepoint. |
| 1197 | 1197 | ||
| 1198 | If `eval-expression-debug-on-error' is non-nil, which is the default, | 1198 | If `eval-expression-debug-on-error' is non-nil, which is the default, |
| 1199 | this command arranges for all errors to enter the debugger." | 1199 | this 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. |
| 1475 | This string will typically look like \" (#o1, #x1, ?\\C-a)\". | 1475 | This string will typically look like \" (#o1, #x1, ?\\C-a)\". |
| 1476 | If VALUE is not an integer, nil is returned. | 1476 | If VALUE is not an integer, return nil. |
| 1477 | This function is used by commands like `eval-expression' that | 1477 | This function is used by commands like `eval-expression' that |
| 1478 | display the result of expression evaluation." | 1478 | display 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, | |||
| 1534 | there is no such truncation. | 1534 | there is no such truncation. |
| 1535 | 1535 | ||
| 1536 | If the resulting value is an integer, and CHAR-PRINT-LIMIT is | 1536 | If the resulting value is an integer, and CHAR-PRINT-LIMIT is |
| 1537 | non-nil (interactively, unless given a positive prefix argument) | 1537 | non-nil (interactively, unless given a non-zero prefix argument) |
| 1538 | it will be printed in several additional formats (octal, | 1538 | it will be printed in several additional formats (octal, |
| 1539 | hexadecimal, and character). The character format is only used | 1539 | hexadecimal, and character). The character format is only used |
| 1540 | if the value is below CHAR-PRINT-LIMIT (interactively, if the | 1540 | if the value is below CHAR-PRINT-LIMIT (interactively, if the |
| 1541 | prefix argument is -1 or the value is below | 1541 | prefix argument is -1 or the value doesn't exceed |
| 1542 | `eval-expression-print-maximum-character'). | 1542 | `eval-expression-print-maximum-character'). |
| 1543 | 1543 | ||
| 1544 | Runs the hook `eval-expression-minibuffer-setup-hook' on entering the | 1544 | Runs the hook `eval-expression-minibuffer-setup-hook' on entering the |