all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
Cc: 68927@debbugs.gnu.org
Subject: bug#68927: CapsLock gets toggled by a frozen Emacs even if that's supposed to be prevented by a third party app
Date: Mon, 05 Feb 2024 14:10:13 +0200	[thread overview]
Message-ID: <86y1bz1596.fsf@gnu.org> (raw)
In-Reply-To: <b4d46e52-f00e-4cf2-b09d-8d9929437b77@gmail.com> (message from Nikolay Kudryavtsev on Sun, 4 Feb 2024 22:11:55 +0300)

> From: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
> 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.





  reply	other threads:[~2024-02-05 12:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-04 19:11 bug#68927: CapsLock gets toggled by a frozen Emacs even if that's supposed to be prevented by a third party app Nikolay Kudryavtsev
2024-02-05 12:10 ` Eli Zaretskii [this message]
2024-02-05 12:45   ` Nikolay Kudryavtsev
2024-02-05 13:00     ` Eli Zaretskii
2024-02-05 13:13       ` Nikolay Kudryavtsev
2024-02-05 14:29         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86y1bz1596.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=68927@debbugs.gnu.org \
    --cc=nikolay.kudryavtsev@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.