emacs-devel
[Top][All Lists]
Advanced

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

Re: evaluating numbers


From: Stefan Monnier
Subject: Re: evaluating numbers
Date: Sat, 09 Nov 2019 11:03:35 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> Characters are just integers in Emacs.
> I know that. You're not really answering the above question. When people
> expect a character to be returned, they expect a character and not
> a code point.

Emacs can't know what the user expects.

> How useful is:
> (decode-char 'emacs 345)
> 345 (#o531, #x159)

And the code that displays "345 (#o531, #x159)" doesn't know that this
345 is coming out of a function which is expected to return characters.
All it knows is that it has to print the integer 345.


        Stefan




reply via email to

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