aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorNoam Postavsky2017-04-23 22:30:20 -0400
committerNoam Postavsky2017-05-19 18:16:38 -0400
commitacd58c9198c08c3eb631a3f036b4f95073f7fe10 (patch)
tree8b837e0c83559e249d7aee8250edeb483c8748d2 /etc
parent267be4bdc28564a99f45da29e84eb98838117b50 (diff)
downloademacs-acd58c9198c08c3eb631a3f036b4f95073f7fe10.tar.gz
emacs-acd58c9198c08c3eb631a3f036b4f95073f7fe10.zip
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 340718ecbc4..aa579b11c7a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -352,6 +352,10 @@ environment variable on a remote machine to emacsclient, and
352use the local Emacs to edit remote files via Tramp. See the node 352use the local Emacs to edit remote files via Tramp. See the node
353"emacsclient Options" in the user manual for the details. 353"emacsclient Options" in the user manual for the details.
354 354
355+++
356** The new variable 'eval-expression-print-maximum-character' prevents
357large integers from being displayed as characters.
358
355 359
356* Editing Changes in Emacs 26.1 360* Editing Changes in Emacs 26.1
357 361