aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-04-30 17:39:05 +0200
committerLars Ingebrigtsen2016-04-30 17:39:05 +0200
commitcd193a871f5a8e1c81ba86fc398ac382fa814383 (patch)
tree68ce80ce3fff913708e36cc5fadb2288a2ecd376
parent66379a737d0ab09d05f9d770cf715247db5eacae (diff)
downloademacs-cd193a871f5a8e1c81ba86fc398ac382fa814383.tar.gz
emacs-cd193a871f5a8e1c81ba86fc398ac382fa814383.zip
Clarify the doc of eval-expression-print-format
* lisp/simple.el (eval-expression-print-format): Doc clarification (bug#19114).
-rw-r--r--lisp/simple.el9
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.
1424Return a formatted string which is displayed in the echo area 1424This string will typically look like \" (#o1, #x1, ?\\C-a)\".
1425in addition to the value printed by prin1 in functions which 1425If VALUE is not an integer, nil is returned.
1426display the result of expression evaluation." 1426This function is used by functions like `prin1' that display the
1427result 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))))