From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54804: 29.0.50; zap-to-char: case sensitive for upper-case letter Date: Wed, 11 May 2022 14:15:00 +0300 Message-ID: <83bkw4s4ln.fsf@gnu.org> References: <87ee27fd1a.fsf@gmail.com> <83bkxaaj45.fsf@gnu.org> <878rs55m81.fsf@gmail.com> <834k2t1cva.fsf@gnu.org> <87ilqdnl8z.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25994"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54804@debbugs.gnu.org, uyennhi.qm@gmail.com, spwhitton@spwhitton.name To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 11 13:22:01 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nokPm-0006Si-OK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 13:22:01 +0200 Original-Received: from localhost ([::1]:52846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nokPl-0002MK-L2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 07:21:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nokK5-0005Mr-EA for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 07:16:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42319) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nokK2-0003Pg-HH for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 07:16:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nokK2-0008DV-E0 for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 07:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2022 11:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 54804-submit@debbugs.gnu.org id=B54804.165226771231516 (code B ref 54804); Wed, 11 May 2022 11:16:02 +0000 Original-Received: (at 54804) by debbugs.gnu.org; 11 May 2022 11:15:12 +0000 Original-Received: from localhost ([127.0.0.1]:36216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nokJE-0008CF-Av for submit@debbugs.gnu.org; Wed, 11 May 2022 07:15:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nokJD-0008C2-AW for 54804@debbugs.gnu.org; Wed, 11 May 2022 07:15:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nokJ4-0002yJ-4i; Wed, 11 May 2022 07:15:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=8hq92LqBz65OgSXyQP6Vfsp45Dybm1Bp2XcbwCbeDXk=; b=Wbriv6vn0RH8 Oza9BYdPQc0xQLoiVF8z2kCHneC0hW/DdFKYmqiI33p7h3U+3b/BbLzwG3+UZW6e4cqqo2oEfjFzL Kl1bPPfmrbN9ZlCT5Er1oUrs2Glvk/Nm1eXCyLeFZh1J423GpyIvLuTR4gP6mH70RBt8+aQMfEsSW hkZnQ2wEK93rVk0RuYr3oZLG1bQDg1olaSSk8CC8iIGILNXpThrIAED3IyZQ/ntNs/4GbIr1Y1syK GzDlmE7Ts1MvRMmVXszUC5CDsBkZthcvo12VX67aiuXf14RxByueALifupUJz1+c19HRz6xHIw1K/ sv6tH6hAT0CFm3dwbwPI6Q==; Original-Received: from [87.69.77.57] (port=4910 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nokJ3-0005rJ-17; Wed, 11 May 2022 07:15:01 -0400 In-Reply-To: <87ilqdnl8z.fsf@gmail.com> (message from Tino Calancha on Tue, 10 May 2022 23:14:20 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231893 Archived-At: > From: Tino Calancha > Cc: 54804@debbugs.gnu.org, uyennhi.qm@gmail.com, Sean Whitton > > Date: Tue, 10 May 2022 23:14:20 +0200 > > Eli Zaretskii 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).