diff options
| -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 da6deea3e84..1247cb25da2 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1420,10 +1420,11 @@ If nil, don't change the value of `debug-on-error'." | |||
| 1420 | :version "21.1") | 1420 | :version "21.1") |
| 1421 | 1421 | ||
| 1422 | (defun eval-expression-print-format (value) | 1422 | (defun eval-expression-print-format (value) |
| 1423 | "Format VALUE as a result of evaluated expression. | 1423 | "If VALUE in an integer, return a specially formatted string. |
| 1424 | Return a formatted string which is displayed in the echo area | 1424 | This string will typically look like \" (#o1, #x1, ?\\C-a)\". |
| 1425 | in addition to the value printed by prin1 in functions which | 1425 | If VALUE is not an integer, nil is returned. |
| 1426 | display the result of expression evaluation." | 1426 | This function is used by functions like `prin1' that display the |
| 1427 | result of expression evaluation." | ||
| 1427 | (if (and (integerp value) | 1428 | (if (and (integerp value) |
| 1428 | (or (eq standard-output t) | 1429 | (or (eq standard-output t) |
| 1429 | (zerop (prefix-numeric-value current-prefix-arg)))) | 1430 | (zerop (prefix-numeric-value current-prefix-arg)))) |