Subject: Re: bug#54804: 29.0.50; zap-to-char: case sensitive for upper-case letter

From: Eli Zaretskii <[email-masked]>
Date: Wed, 11 May 2022 14:15:00 +0300

> From: Tino Calancha <[email-masked]>
> Cc: [email-masked],  [email-masked], Sean Whitton
>  <[email-masked]>
> Date: Tue, 10 May 2022 23:14:20 +0200
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > What I'd prefer is to have a single function (in subr.el) that
> > determines whether a character is an upper- or lower-case
> 
> > it could instead use something like
> >
> >    (characterp (get-char-code-property CHAR 'uppercase))
> >
> > (But beware of the situation where the Unicode tables are not yet
> > available during bootstrap -- in those cases the function should IMO
> > punt and return nil no matter what the character is, or maybe support
> > just the ASCII characters.  To test whether the 'uppercase table is
> > available, see if unicode-property-table-internal returns non-nil.)
> 
> Is it the following implementation OK for such a function?

Yes, thanks.  But please call it char-uppercase-p ("upcase" has the
meaning of making a character upper-case).