diff options
author | Eli Zaretskii <eliz@gnu.org> | 2018-07-06 12:31:51 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2018-07-06 12:31:51 +0300 |
commit | 4abf94fa3bfc9d03423c80b7ceab82905a4e3baa (patch) | |
tree | 58248d762a8c701f85247b0641efc3c22043e636 /lisp/simple.el | |
parent | 6cfc7a7b1bc3989e6d2cc271222ff7ce4eb23b5e (diff) | |
download | emacs-4abf94fa3bfc9d03423c80b7ceab82905a4e3baa.tar.gz |
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)
Diffstat (limited to 'lisp/simple.el')
-rw-r--r-- | lisp/simple.el | 8 |
1 files changed, 4 insertions, 4 deletions
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 :version "26.1") (defun eval-expression-print-format (value) - "If VALUE in an integer, return a specially formatted string. + "If VALUE is an integer, return a specially formatted string. This string will typically look like \" (#o1, #x1, ?\\C-a)\". -If VALUE is not an integer, nil is returned. +If VALUE is not an integer, return nil. This function is used by commands like `eval-expression' that display the result of expression evaluation." (when (integerp value) @@ -1534,11 +1534,11 @@ non-nil (interactively, with a prefix argument of zero), however, there is no such truncation. If the resulting value is an integer, and CHAR-PRINT-LIMIT is -non-nil (interactively, unless given a positive prefix argument) +non-nil (interactively, unless given a non-zero prefix argument) it will be printed in several additional formats (octal, hexadecimal, and character). The character format is only used if the value is below CHAR-PRINT-LIMIT (interactively, if the -prefix argument is -1 or the value is below +prefix argument is -1 or the value doesn't exceed `eval-expression-print-maximum-character'). Runs the hook `eval-expression-minibuffer-setup-hook' on entering the |