[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: evaluating numbers

From: Juri Linkov
Subject: Re: evaluating numbers
Date: Tue, 12 Nov 2019 22:28:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

>>> That way I *know* when an integer is a character and when it is not.
>> Set eval-expression-print-maximum-character to (max-char).
> eval-expression-print-maximum-character is a customizable variable,
> but has no option for max-char.  Should it?

diff --git a/lisp/simple.el b/lisp/simple.el
index 47d4adb0fd..8b1f9e3e52 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1561,7 +1561,9 @@ eval-expression-print-maximum-character
 This affects printing by `eval-expression' (via
   :group 'lisp
-  :type 'integer
+  :type `(choice (const :tag "ASCII characters" 127)
+                 (const :tag "Maximum number" ,(max-char))
+                 (integer :tag "Custom number"))
   :version "26.1")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]