Function: eval-expression-get-print-arguments
eval-expression-get-print-arguments is a byte-compiled function
defined in simple.el.gz.
Signature
(eval-expression-get-print-arguments PREFIX-ARGUMENT)
Documentation
Get arguments for commands that print an expression result.
Returns a list (INSERT-VALUE NO-TRUNCATE CHAR-PRINT-LIMIT) based
on PREFIX-ARGUMENT. This function determines the interpretation
of the prefix argument for eval-expression and
eval-last-sexp.
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun eval-expression-get-print-arguments (prefix-argument)
"Get arguments for commands that print an expression result.
Returns a list (INSERT-VALUE NO-TRUNCATE CHAR-PRINT-LIMIT) based
on PREFIX-ARGUMENT. This function determines the interpretation
of the prefix argument for `eval-expression' and
`eval-last-sexp'."
(let ((num (prefix-numeric-value prefix-argument)))
(list (not (memq prefix-argument '(- nil)))
(= num 0)
(cond ((not (memq prefix-argument '(0 -1 - nil))) nil)
((= num -1) most-positive-fixnum)
(t eval-expression-print-maximum-character)))))