From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24456: 25.1; [PATCH] Caps-lock doesn't affect interpretation of key chords Date: Wed, 21 Sep 2016 17:56:51 +0300 Message-ID: <83mvj1fgi4.fsf@gnu.org> References: <87oa3l7ku4.fsf@secretsauce.net> <87k2e9z4l9.fsf@users.sourceforge.net> <87lgyp6p5h.fsf@secretsauce.net> <834m5ciq4m.fsf@gnu.org> <87k2e879by.fsf@secretsauce.net> <83shsvhmc2.fsf@gnu.org> <87fuov7o3a.fsf@secretsauce.net> <83lgynhgg1.fsf@gnu.org> <87d1jz7hx3.fsf@secretsauce.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1474470417 3013 195.159.176.226 (21 Sep 2016 15:06:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Sep 2016 15:06:57 +0000 (UTC) Cc: 24456@debbugs.gnu.org, npostavs@users.sourceforge.net To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 21 17:06:49 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bmj6R-0005Im-M5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Sep 2016 17:06:27 +0200 Original-Received: from localhost ([::1]:43011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmixV-0004Fd-9T for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Sep 2016 10:57:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmixM-0004DZ-2v for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2016 10:57:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmixK-00026i-Lb for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2016 10:57:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmixK-00026T-Hr for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2016 10:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bmixK-0001Z9-8s for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2016 10:57: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, 21 Sep 2016 14:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24456 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24456-submit@debbugs.gnu.org id=B24456.14744698065999 (code B ref 24456); Wed, 21 Sep 2016 14:57:02 +0000 Original-Received: (at 24456) by debbugs.gnu.org; 21 Sep 2016 14:56:46 +0000 Original-Received: from localhost ([127.0.0.1]:59693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bmix4-0001Yh-EK for submit@debbugs.gnu.org; Wed, 21 Sep 2016 10:56:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bmix2-0001YU-Mw for 24456@debbugs.gnu.org; Wed, 21 Sep 2016 10:56:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmiwr-0001hG-2F for 24456@debbugs.gnu.org; Wed, 21 Sep 2016 10:56:36 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmiwq-0001gi-Vc; Wed, 21 Sep 2016 10:56:32 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3648 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bmiwl-0008Im-RC; Wed, 21 Sep 2016 10:56:29 -0400 In-reply-to: <87d1jz7hx3.fsf@secretsauce.net> (message from Dima Kogan on Mon, 19 Sep 2016 13:28:56 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123508 Archived-At: > From: Dima Kogan > Cc: npostavs@users.sourceforge.net, 24456@debbugs.gnu.org > Date: Mon, 19 Sep 2016 13:28:56 -0700 > > Eli Zaretskii writes: > > > What exactly requires testing for ASCII lower-case letters in your > > patch? Why only ASCII? > > I'm trying to detect the caps-lock by finding capital letters that were > produced without Shift (and vice versa). I can do something like > > !shift_pressed && isupper(c) > > but that doesn't work with wide characters. There's iswupper(c). Are the > wide chars it takes the same ones we get in that function? How about > non-latin scripts? We already have an inline function 'uppercasep', which you could use; it supports any character that Emacs supports. > Fundamentally I'm the worst person to be testing this, sadly. Once the code is written, we can ask people to test it in different locales, I don't expect problems in this area. Thanks.