emacs-devel
[Top][All Lists]
Advanced

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

Re: evaluating numbers


From: Juri Linkov
Subject: Re: evaluating numbers
Date: Fri, 15 Nov 2019 00:50:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

>> -  :type 'integer
>> +  :type `(choice (const :tag "ASCII characters" 127)
>> +                 (const :tag "Maximum number" ,(max-char))
>
> This is sub-optimal, because it leaves the meaning of "maximum number"
> unclear.  I suggest "Any character" or "No limitation" instead.
>
>> +                 (integer :tag "Custom number"))
>
> And here, I'd suggest "Max codepoint to display as character" instead.

Ok, will use this text.  But I have more doubts about using (max-char).
What if this .el is compiled on 64-bit, where a larger value of 'max-char'
will be saved to .elc, but loaded on 32-bit.  Will it fail to load such .elc?

Maybe instead of (max-char) it would be better to use the value 't'
to mean no limitation.  Then to check this value explicitly
in the implementation of 'eval-expression-print-format'.



reply via email to

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