From unknown Tue Jun 17 06:29:48 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68927 <68927@debbugs.gnu.org> To: bug#68927 <68927@debbugs.gnu.org> Subject: Status: CapsLock gets toggled by a frozen Emacs even if that's supposed to be prevented by a third party app Reply-To: bug#68927 <68927@debbugs.gnu.org> Date: Tue, 17 Jun 2025 13:29:48 +0000 retitle 68927 CapsLock gets toggled by a frozen Emacs even if that's suppos= ed to be prevented by a third party app reassign 68927 emacs submitter 68927 Nikolay Kudryavtsev severity 68927 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 04 14:12:29 2024 Received: (at submit) by debbugs.gnu.org; 4 Feb 2024 19:12:29 +0000 Received: from localhost ([127.0.0.1]:50045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWhun-0003cK-1y for submit@debbugs.gnu.org; Sun, 04 Feb 2024 14:12:29 -0500 Received: from lists.gnu.org ([2001:470:142::17]:53364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWhuh-0003c0-By for submit@debbugs.gnu.org; Sun, 04 Feb 2024 14:12:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWhuO-0005Ef-Vm for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2024 14:12:05 -0500 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rWhuM-0002fu-T4 for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2024 14:12:04 -0500 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-51142b5b76dso2077074e87.2 for ; Sun, 04 Feb 2024 11:12:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707073918; x=1707678718; darn=gnu.org; h=content-transfer-encoding:subject:to:content-language:user-agent :mime-version:date:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=rhtsy/WjlEGMzhF0vhgvit5JK1F79EcmZ77FgUPHt68=; b=PyqFvr4bXWatecuabk5hj51DKSxiEfB9KtGncKZuAy1UNPB8fGYgJAuso+UKHUAVMh QmR/Up/fzN0GJ0ZnH4vCz+QFOvOeZRLKI2mzBunE4OYgXHZHYNwzDP+RwdjrH+86bHh0 B9lTxUavXWrFhA++j8P4M70bGwtZlIBwTuFHMAkNTBOnCO6i6XLv8ibscjkL/gIPfnCJ rOKZixVfGi17VLSI/mamFc55jT6Cfqx0TIU3NA8hHMYa9H0iiUt96A9Aqvy9CNMooXRL PEGVhOs7yL8NVBWmM2HgcNxl4qyVpBzGNdHZCWxuYyu169fAv0urlnpmjpqEivBp60D6 QHvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707073918; x=1707678718; h=content-transfer-encoding:subject:to:content-language:user-agent :mime-version:date:message-id:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rhtsy/WjlEGMzhF0vhgvit5JK1F79EcmZ77FgUPHt68=; b=QLUjDZrlundnFJOBzyYtaIb+A8HQtQjzG59ZN2JM9PAB49BecpvQ2/fR/IcnYVfF1N hiDVpW6OHKBU/7GIuLnU6/YZ1UTuvrVm3XwjgxiFw0dPgq/yHQi0jYC0E6d+MXDCf4P0 Wcun46r8WG1AC/X7KwkoNse9C9gIFjuU5levXxoWumB9acgNL5CKrlMYNL8SLlyH/zfD iHb7o8uLaFBMPDb+xbi+DOkcivtwUYhWRVfJJ4UuRzJ3BCWpPOfKBanyz3RmqzoT+nnW sro2yjxyL4yxiGXZuCa6HAMxtBEQvXTTpf1ayzPVoMQTImdC7NhCJdqOUzk5VPeCEqns RMDQ== X-Gm-Message-State: AOJu0YzCoQpf78WwmVcvDAj/Qcgm1ZyxRtSBlO9V3xTXQNRtt/rKfhpF phaZMeD0xM+44xrrxomFHer7sfS2BedhMKAIV3FR7oJs2C7vYy4g7bHiq+pZ X-Google-Smtp-Source: AGHT+IFeIMtoNAfwGyek9Vj8bT1zducE59nIxGVnSOMOGD/kPvWxcYsN5kfQC9jKP4omyswIR1aKMA== X-Received: by 2002:a19:5e57:0:b0:511:4a38:351e with SMTP id z23-20020a195e57000000b005114a38351emr1920197lfi.34.1707073917981; Sun, 04 Feb 2024 11:11:57 -0800 (PST) Received: from ?IPV6:2a02:2168:b3fc:9700:c5aa:c61e:5365:32c? ([2a02:2168:b3fc:9700:c5aa:c61e:5365:32c]) by smtp.gmail.com with ESMTPSA id v25-20020a056512349900b005114ca5bd98sm237985lfr.129.2024.02.04.11.11.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 04 Feb 2024 11:11:57 -0800 (PST) From: Nikolay Kudryavtsev X-Google-Original-From: Nikolay Kudryavtsev Message-ID: Date: Sun, 4 Feb 2024 22:11:55 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US, ru To: bug-gnu-emacs@gnu.org Subject: CapsLock gets toggled by a frozen Emacs even if that's supposed to be prevented by a third party app Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=nikolay.kudryavtsev@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) I've originally mentioned this in discussion on #68914, because it seemed like a somewhat similar problem. But Eli suggested there that I should report this separately. Let me disclaim in advance that I believe that this is an extremely minor niche issue and the value of investigating it is only in making sure that there aren't any other, more important use cases hit by this. So here are the detailed reproduction steps: 1. Use Windows. I haven't really tested other platforms for this, but I highly suspect that this is a platform-specific issue. 2. Setup Mahou layout switcher. You can download it here: https://gitea.com/BladeMight/Mahou/releases/download/latest-commit/Release_x86_x64.zip The default settings should be sufficient. But to make sure, here are the relevant ones: -On the "Layouts" tab, make sure "Change to specific layout by keys" is set to on and Caps Lock is the first key. -On the "Functions" tab make sure "Remap Caps Lock to F18" is set to on. 3. Run Emacs -q 4. Eval (global-set-key [f18] nil) . We're doing this to avoid extra paste due to Mahou F18 setting. But strictly it's not necessary. 5. Freeze Emacs by forcing it to run some code for a few seconds. I've used: (let ((x 0))   (dotimes (i 10000000)     (setq x (1+ x)))) 6. While the above is running, start tapping CapsLock. You'd see that CapsLock toggles even though it shouldn't and this only happens when Emacs is frozen. Few other notes regarding this bug: Mahou is somewhat buggy too, I've seen it pointlessly toggle caps in other apps, but it does not seem to be the same issue. I originally noticed it while using a certain proprietary app for the same purpose. So there are at least 2 applications with which this reliably happens. There are many more applications with which this is not reproducible. I could not reproduce it with AutoHotkey, a dozen of other apps, including some other layout switchers like dotSwitcher. So it seems like the third party app should be intercepting CapsLock in a very particular way for this to show up and thus the importance of the Mahou F18 setting is particularly interesting, because without it, the bug is not reproducible with Mahou. I was wrong about Emacs 25 not suffering from this problem. I could reproduce it there too. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 05 07:10:47 2024 Received: (at 68927) by debbugs.gnu.org; 5 Feb 2024 12:10:47 +0000 Received: from localhost ([127.0.0.1]:50687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWxoE-0005Mh-Vo for submit@debbugs.gnu.org; Mon, 05 Feb 2024 07:10:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWxoB-0005MT-Rp for 68927@debbugs.gnu.org; Mon, 05 Feb 2024 07:10:45 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWxnt-00014F-Fg; Mon, 05 Feb 2024 07:10:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=517X0RRjcYe+UwrYin0Wyg30+tlpe3cIf+mLhOFBTd0=; b=lAkShXBiG5/QigAKUprm RMXwsFIYNV70z6j0TMRln7uDdHf/9lnCwjBraMIHehQekVvNvXawykfexG7svEOTdg2vB2l4Kbpqd uRmlvkuYfSwOthjfgLfP6BE1ARuuiCH9eVVOsTdzfw90/Qtzln0VEYi5wDnncLTl9iMi9Rvh4GNC5 LSWHGotJMfQw9QtSj6EgwLNvFW7WKh86vh+MIOVbSOgAI4A4S0ni6DHJhjjuRY+i+cYgmC8SFUWqp gZKy4jskNhZ5xY95UAlgZwOoVop61xxCOorktHHrkv4Yl/2CXazw8smRtM81/f9IuNOMq1huq0Xok yHv3jvB5546oGw==; Date: Mon, 05 Feb 2024 14:10:13 +0200 Message-Id: <86y1bz1596.fsf@gnu.org> From: Eli Zaretskii To: Nikolay Kudryavtsev In-Reply-To: (message from Nikolay Kudryavtsev on Sun, 4 Feb 2024 22:11:55 +0300) Subject: Re: bug#68927: CapsLock gets toggled by a frozen Emacs even if that's supposed to be prevented by a third party app References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68927 Cc: 68927@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Nikolay Kudryavtsev > Date: Sun, 4 Feb 2024 22:11:55 +0300 > > 5. Freeze Emacs by forcing it to run some code for a few seconds. I've used: > > (let ((x 0)) >   (dotimes (i 10000000) >     (setq x (1+ x)))) > > 6. While the above is running, start tapping CapsLock. You'd see that > CapsLock toggles even though it shouldn't and this only happens when > Emacs is frozen. Why are you saying that CapsLock should not toggle in this case? What prevents it from toggling in this scenario? If I just run the above loop, and during its run quickly press and release CapsLock, then type some letter key, then press and release CapsLock again, I see an upper-case letter inserted after the loop finishes. Which means Emacs at least by default does pay attention to CapsLock state even if it is busy with some calculation in its Lisp thread. Why should that behave differently with Mahou installed? > I was wrong about Emacs 25 not suffering from this problem. I could > reproduce it there too. So this is unlikely to be related to the low-level keyboard hook we install on Windows since Emacs 26. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 05 07:45:36 2024 Received: (at 68927) by debbugs.gnu.org; 5 Feb 2024 12:45:36 +0000 Received: from localhost ([127.0.0.1]:50723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWyLw-0000bI-GO for submit@debbugs.gnu.org; Mon, 05 Feb 2024 07:45:36 -0500 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:44232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWyLt-0000au-Dq for 68927@debbugs.gnu.org; Mon, 05 Feb 2024 07:45:35 -0500 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2d0aabed735so12358541fa.0 for <68927@debbugs.gnu.org>; Mon, 05 Feb 2024 04:45:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707137115; x=1707741915; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from:from:to :cc:subject:date:message-id:reply-to; bh=oXso6lO5hg+skqDjQJ9hsB75kpkNWZf16FnxxZkh4V4=; b=fJly9gPCCBXODLicMEAbnlFTuhsPA4f3Z9BW1QflQpIuJMuOjbceEN1Pku8pYKq1A2 uZGorDa1k8ijdbIiaqCIc706UIGYN3pL0g+/rsD+selYwVKUgNftuojEQsrdGJXCdsvO f4uwFxmn4BbpNf5QFBPXOvVvk1hMTjTd2qXpSXKeqXguD2UsDmQfkXNVSzNz/coJr4Pp VU6IMFY995CKvnmvwTgnXQZHmse6lPWHMXI6s0GIkuast02nx6ByeuzVyktePdpcuxBh pc/KFGRTW9I8Jo3SxAqhkOEaNuXjrPBz4Aff8V0og2GFSAZlS98IMA4RUWylS9vpFMq6 Oocg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707137115; x=1707741915; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oXso6lO5hg+skqDjQJ9hsB75kpkNWZf16FnxxZkh4V4=; b=reT2yh9Q22K25zubwElkmPmRsFC8bSZvvMiCA68K5mID4ZF6MQSaooQrjDdn6c5FmT F8to0QOT4sY2wp4kfmn7rkXbRumRyUCSRvWXB/ElcgbvPjY6DHr7XieKmMNS8gjIXj5X C46d/z8IrgLPLexLkOxnxZhCkX2D5ojuiSBpYoRXe4gES24VIU1OrtoVn/CKHIX+FAWf YMAL4Iq7kaM8Z/yNl45YzDW4qE+5hXvPQ21mz6tBVOB5rIoUhtHG2Ez40AvnuFSg/NpP IkrK9PRJxKmn7aI8DEVM4N1/+C/Nnb3EiW1HMCxlz2uFZsnqh+kqX4Fxm0xcCzCG+X7t /LrQ== X-Gm-Message-State: AOJu0YwXQ3X4zTtUQ7Fsd2V9N/BcFkd6YfVqt8BEqhhcLIHhxMFmunQh /qpdkMs+bZprIKml7iHbi2MPCK4et0REoK/d7ttvC/u/zNyx6BXB X-Google-Smtp-Source: AGHT+IE7aSt+cMWB/e3dM5mWeuJngWv/B5Uk60xCH7fRmmhR8R2uxzW2Y0lIGoT3xpuv5dhXlEMbrg== X-Received: by 2002:a2e:9257:0:b0:2d0:97ec:4678 with SMTP id v23-20020a2e9257000000b002d097ec4678mr4392509ljg.32.1707137114396; Mon, 05 Feb 2024 04:45:14 -0800 (PST) Received: from ?IPV6:2a02:2168:b3fc:9700:415e:d595:c3d9:c127? ([2a02:2168:b3fc:9700:415e:d595:c3d9:c127]) by smtp.gmail.com with ESMTPSA id u19-20020a2eb813000000b002d0a353131esm629992ljo.74.2024.02.05.04.45.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Feb 2024 04:45:14 -0800 (PST) From: Nikolay Kudryavtsev X-Google-Original-From: Nikolay Kudryavtsev Message-ID: Date: Mon, 5 Feb 2024 15:45:13 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#68927: CapsLock gets toggled by a frozen Emacs even if that's supposed to be prevented by a third party app To: Eli Zaretskii References: <86y1bz1596.fsf@gnu.org> Content-Language: ru, en-US In-Reply-To: <86y1bz1596.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68927 Cc: 68927@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Why are you saying that CapsLock should not toggle in this case? What > prevents it from toggling in this scenario? Because I normally use CapsLock to toggle between keyboard layouts. External software like Mahou is what facilitates that and what should prevent the CapsLock itself from toggling. And it normally does, except for when Emacs gets busy with something. Since I switch between layouts all the time I've noticed that I sometimes get those unwanted CapsLock toggles from time to time when using Emacs. Then eventually I've noticed that they only happens if I try to switch layout while Emacs is busy. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 05 08:01:17 2024 Received: (at 68927) by debbugs.gnu.org; 5 Feb 2024 13:01:17 +0000 Received: from localhost ([127.0.0.1]:50749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWyb6-00016w-8z for submit@debbugs.gnu.org; Mon, 05 Feb 2024 08:01:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWyb2-00016d-At for 68927@debbugs.gnu.org; Mon, 05 Feb 2024 08:01:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWyai-0002fv-51; Mon, 05 Feb 2024 08:00:53 -0500 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=BYpD2mpdMpocxY3MUXeFoPWfNsqzl6sIxckCtylKpB4=; b=QEwHUFoVzxUL Z8dAhv/O88zVYBcgS7+G9S4Ft23TPL4uWTUm2V3iIDG/ln4Kl5b+DxSNb3sIDG5hI32o97yN5LbpC 6WQj6ZqNjREan5ebjb3jU/y2yhzbmNEh/Isr+CA6yjLPIEPvonPUBs9b4D9FxhEdsqrXgJ7tiHN5a m01mUZ+ybVYX9157+V7Rx5yui1JX59qb+QC6MUjS6B9wdMDQLW/qAfuU29U7fnHnjrMgRuAjQ0nYk TXHovT2D+8Il10tFUlQvkeu71e2ohzWPcm2U5JVHTpNUdRCpUWKqwaIjFGVBiQ1i47pTtfpPE/0y6 9dbeCci9q0mGByqmub5xpw==; Date: Mon, 05 Feb 2024 15:00:44 +0200 Message-Id: <86o7cv12wz.fsf@gnu.org> From: Eli Zaretskii To: Nikolay Kudryavtsev In-Reply-To: (message from Nikolay Kudryavtsev on Mon, 5 Feb 2024 15:45:13 +0300) Subject: Re: bug#68927: CapsLock gets toggled by a frozen Emacs even if that's supposed to be prevented by a third party app References: <86y1bz1596.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68927 Cc: 68927@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Nikolay Kudryavtsev > Date: Mon, 5 Feb 2024 15:45:13 +0300 > Cc: 68927@debbugs.gnu.org > > > Why are you saying that CapsLock should not toggle in this case? What > > prevents it from toggling in this scenario? > > Because I normally use CapsLock to toggle between keyboard layouts. > External software like Mahou is what facilitates that and what should > prevent the CapsLock itself from toggling. And it normally does, except > for when Emacs gets busy with something. Then this is as likely to be an Emacs bug as it is a bug in Mahou, right? Perhaps Mahou is unprepared to cope with programs that hook keyboard input on such a low level? I think we need some expert to explain to us what happens with Mahou, before we consider this an Emacs bug. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 05 08:13:47 2024 Received: (at 68927) by debbugs.gnu.org; 5 Feb 2024 13:13:48 +0000 Received: from localhost ([127.0.0.1]:50762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWynD-0001QN-KR for submit@debbugs.gnu.org; Mon, 05 Feb 2024 08:13:47 -0500 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:44451) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWynA-0001Q7-Th for 68927@debbugs.gnu.org; Mon, 05 Feb 2024 08:13:46 -0500 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-5114c05806eso1866255e87.1 for <68927@debbugs.gnu.org>; Mon, 05 Feb 2024 05:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707138806; x=1707743606; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=0GVroN9LdBuMhbbIjIcXcY5/erl7OkYJhweesaJBUvw=; b=HPBLXnspMynzXgdEZQeGIzm+UTxHOfK/+CzQ7Fjs2nQwmjZi5WPjByvdk0LKZpnHa3 i95fe9rlLngJwIa8fuLCAllG6Z3Idgy8xKM3SwvrKn+5YQlo/VbSNnYcCHTseQmkcjsk HeDqTTDs2n33H1PicuT8KaWx7Molswp2jRQZJav/MA2fefRkB3B6z43J4puEmPk/K6WP Lwnr7jBJi/CwOBm6gY0rzf83EYkrD91RTQxkLO79QFNeAhiRDyt/ByWd+sOxsULSaAwb QQf3ZkA1DSiTTPXwBGy/6biwnL3y72Zn304ckZE6LKGYUt3XZdIETM5G4LrMw3RWjApV ew2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707138806; x=1707743606; h=content-transfer-encoding:in-reply-to:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0GVroN9LdBuMhbbIjIcXcY5/erl7OkYJhweesaJBUvw=; b=HDYMBCwyVGfCMUfT4TGOCLbi2vCxrsPwXBRHqiIOF37227ir5YlEWgwRDdTeAVpwYM XGBGQOrbvWw6LwkUdnHirLNTOtod3ZU3osWU8CFNkONG+UzrOwNY415u2NLYVWflaYXZ 1oAeaJe/B804IMPZPJGt6CvL8QdgieqRR3K5pgkK5+w9QbS5gLoUzNnq8puQkgWwmMf9 3yBmOMdD8sbOTaf4GumLmjWZPwrO7+ycFIGb84SWWYLqgVQkLkTrrE2sLw+G64wP0tee uwFYwq3bOlyBZl1D0PdsCv6BvmWt2iAMDZvByqAZA9CGWPJT8U9+R4A211oiLzoLI+0q nPMQ== X-Gm-Message-State: AOJu0YyOSsPJ8LVC23L3X9upa28Lw1+0BP/I/G5vmHRB1w4tdGsafNlV ooN1gBX7ZV0giJG4+umtWeGuL9TlaZpLfBh3YsiYsM0SHvC6yzlQSuNsPs4/bgc= X-Google-Smtp-Source: AGHT+IGuDIR/4tJd2VeuFUPqkRnBrkgBTY4tQH4ICf0yGyF5PeGN+YG8127XimTl8IseL3rDWkeMqg== X-Received: by 2002:a05:6512:3d19:b0:511:4b70:76ca with SMTP id d25-20020a0565123d1900b005114b7076camr3521791lfv.58.1707138806061; Mon, 05 Feb 2024 05:13:26 -0800 (PST) Received: from ?IPV6:2a02:2168:b3fc:9700:415e:d595:c3d9:c127? ([2a02:2168:b3fc:9700:415e:d595:c3d9:c127]) by smtp.gmail.com with ESMTPSA id q4-20020ac25104000000b005110fb4ba01sm1217606lfb.182.2024.02.05.05.13.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Feb 2024 05:13:25 -0800 (PST) From: Nikolay Kudryavtsev X-Google-Original-From: Nikolay Kudryavtsev Message-ID: Date: Mon, 5 Feb 2024 16:13:24 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#68927: CapsLock gets toggled by a frozen Emacs even if that's supposed to be prevented by a third party app Content-Language: ru, en-US To: Eli Zaretskii References: <86y1bz1596.fsf@gnu.org> <86o7cv12wz.fsf@gnu.org> In-Reply-To: <86o7cv12wz.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68927 Cc: 68927@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) The reason why I consider this to be an Emacs bug above all is because of that inconsistency in input handling between the idle and busy states. If Emacs had one consistent behavior that wouldn't change depending on the work load then it would be fine, regardless of what the behavior is, but this inconsistency tells me that something is amiss. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 05 09:30:15 2024 Received: (at 68927) by debbugs.gnu.org; 5 Feb 2024 14:30:15 +0000 Received: from localhost ([127.0.0.1]:50848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWzzD-0003US-HU for submit@debbugs.gnu.org; Mon, 05 Feb 2024 09:30:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rWzzB-0003T5-Vp for 68927@debbugs.gnu.org; Mon, 05 Feb 2024 09:30:14 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWzyt-0001AV-UG; Mon, 05 Feb 2024 09:29:55 -0500 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=5WHJcvACWBfx4yzOjh/aLlWNgUir3zJ36UnJakXxeHU=; b=RpuACTI3obcX dW+BBPOhx9LKpVt1Xk4somoMevUWK3H6kwTYbN5XTDUAFBLOPaOtxeJRy8WcUWcLLSUaGYBJIK5L5 YFdGmhKPOGl8qrXqFYeLe4Iadkhii1PFufZ6ZLXJPTPT5WUipkhURroSWHA/OCfdKWwSKEk6twclm abzuJTMenBQBnzO7D2bEj+surCMdC0cMJ01AWRcyYcIDX1hlBtzDDsOSkJ+5sWv2kaZ9tgLwJbpIn eNeG3PBexK9QFVw24y0KvH+Nchgu4bb8yLlaFyRWsExc1YdeQWgywpLKAHpXXMCCaCYvN8fIb2JRR +h8JPrgq6nW7PdJD2JeD6Q==; Date: Mon, 05 Feb 2024 16:29:51 +0200 Message-Id: <86mssf0ysg.fsf@gnu.org> From: Eli Zaretskii To: Nikolay Kudryavtsev In-Reply-To: (message from Nikolay Kudryavtsev on Mon, 5 Feb 2024 16:13:24 +0300) Subject: Re: bug#68927: CapsLock gets toggled by a frozen Emacs even if that's supposed to be prevented by a third party app References: <86y1bz1596.fsf@gnu.org> <86o7cv12wz.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68927 Cc: 68927@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Nikolay Kudryavtsev > Date: Mon, 5 Feb 2024 16:13:24 +0300 > Cc: 68927@debbugs.gnu.org > > The reason why I consider this to be an Emacs bug above all is because > of that inconsistency in input handling between the idle and busy states. > > If Emacs had one consistent behavior that wouldn't change depending on > the work load then it would be fine, regardless of what the behavior is, > but this inconsistency tells me that something is amiss. It's possible it's an Emacs bug, but it is also possible that Mahou somehow mishandles the situation when Emacs responds slower than usually.