diff options
| author | Lars Ingebrigtsen | 2016-04-30 17:39:05 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-05-01 19:27:12 +0200 |
| commit | ed8474e6ff468b3f395f634c032e8f6cee7b8bde (patch) | |
| tree | 967b195566d7d0c2526581d6be3da703802b4782 | |
| parent | 8f1e784f19c74702947c99d321d20fd1156b432c (diff) | |
| download | emacs-ed8474e6ff468b3f395f634c032e8f6cee7b8bde.tar.gz emacs-ed8474e6ff468b3f395f634c032e8f6cee7b8bde.zip | |
Clarify the doc of eval-expression-print-format
* lisp/simple.el (eval-expression-print-format): Doc
clarification (bug#19114).
(cherry picked from commit cd193a871f5a8e1c81ba86fc398ac382fa814383)
| -rw-r--r-- | lisp/simple.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 24d2d7fbc0f..97b40bd214e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1418,10 +1418,11 @@ If nil, don't change the value of `debug-on-error'." | |||
| 1418 | :version "21.1") | 1418 | :version "21.1") |
| 1419 | 1419 | ||
| 1420 | (defun eval-expression-print-format (value) | 1420 | (defun eval-expression-print-format (value) |
| 1421 | "Format VALUE as a result of evaluated expression. | 1421 | "If VALUE in an integer, return a specially formatted string. |
| 1422 | Return a formatted string which is displayed in the echo area | 1422 | This string will typically look like \" (#o1, #x1, ?\\C-a)\". |
| 1423 | in addition to the value printed by prin1 in functions which | 1423 | If VALUE is not an integer, nil is returned. |
| 1424 | display the result of expression evaluation." | 1424 | This function is used by functions like `prin1' that display the |
| 1425 | result of expression evaluation." | ||
| 1425 | (if (and (integerp value) | 1426 | (if (and (integerp value) |
| 1426 | (or (eq standard-output t) | 1427 | (or (eq standard-output t) |
| 1427 | (zerop (prefix-numeric-value current-prefix-arg)))) | 1428 | (zerop (prefix-numeric-value current-prefix-arg)))) |