]> git.eshelyaron.com Git - emacs.git/commit
Limit integers printed as characters (Bug#16828)
authorNoam Postavsky <npostavs@gmail.com>
Mon, 24 Apr 2017 02:30:20 +0000 (22:30 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Fri, 19 May 2017 22:16:38 +0000 (18:16 -0400)
commitacd58c9198c08c3eb631a3f036b4f95073f7fe10
tree8b837e0c83559e249d7aee8250edeb483c8748d2
parent267be4bdc28564a99f45da29e84eb98838117b50
Limit integers printed as characters (Bug#16828)

* lisp/simple.el (eval-expression-print-maximum-character): New
variable.
(eval-expression-print-format): Only display value as character if
it's less than or equal to `eval-expression-print-maximum-character'.
(eval-expression-get-print-arguments): Check
eval-expression-print-maximum-character, allow negative arg to
override it.
(eval-expression):
* lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp):
(elisp--eval-last-sexp-print-value): Handle new variable.
* doc/emacs/building.texi (Lisp Eval): Document new variable and
behavior.
* etc/NEWS: Announce it.
* test/lisp/progmodes/elisp-mode-tests.el
(eval-last-sexp-print-format-small-int)
(eval-last-sexp-print-format-small-int-echo)
(eval-last-sexp-print-format-large-int)
(eval-last-sexp-print-format-large-int-echo):
* test/lisp/simple-tests.el (eval-expression-print-format-small-int)
(eval-expression-print-format-small-int-echo)
(eval-expression-print-format-large-int)
(eval-expression-print-format-large-int-echo): New tests.
doc/emacs/building.texi
etc/NEWS
lisp/progmodes/elisp-mode.el
lisp/simple.el
test/lisp/progmodes/elisp-mode-tests.el
test/lisp/simple-tests.el