bug#32562: 26; `read-char(-exclusive)' and `characterp'

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

bug#32562: 26; `read-char(-exclusive)' and `characterp'

Andreas Schwab
On Sep 10 2018, Drew Adams <[hidden email]> wrote:

> I said "reads a `characterp' character", meaning reads an event
> that satisfies `characterp'. Apparently the functions whose names
> or doc suggests that they read a character do not necessarily
> return something that satisfies `characterp'.

A character with modifiers doesn't satisfy characterp, but it is still a
character (which read-char can return).

Andreas.

--
Andreas Schwab, SUSE Labs, [hidden email]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



Reply | Threaded
Open this post in threaded view
|

bug#32562: 26; `read-char(-exclusive)' and `characterp'

Drew Adams
> > I said "reads a `characterp' character", meaning reads an event
> > that satisfies `characterp'. Apparently the functions whose names
> > or doc suggests that they read a character do not necessarily
> > return something that satisfies `characterp'.
>
> A character with modifiers doesn't satisfy characterp, but it is still a
> character (which read-char can return).

Yes, well, that's what I found a bit confusing wrt the
doc and function names. It wasn't (isn't?) too clear
just what we mean by "character", in that case.



Reply | Threaded
Open this post in threaded view
|

bug#32562: 26; `read-char(-exclusive)' and `characterp'

Eli Zaretskii
> Date: Mon, 10 Sep 2018 08:01:40 -0700 (PDT)
> From: Drew Adams <[hidden email]>
> Cc: Eli Zaretskii <[hidden email]>, [hidden email]
>
> > A character with modifiers doesn't satisfy characterp, but it is still a
> > character (which read-char can return).
>
> Yes, well, that's what I found a bit confusing wrt the
> doc and function names. It wasn't (isn't?) too clear
> just what we mean by "character", in that case.

I made the documentation say "character event" where it matters.