From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#69083: Emacs's keyboard hook state is not reset on session lock
 (Windows)
Date: Wed, 21 Feb 2024 17:03:41 +0200
Message-ID: <86o7c9n9ki.fsf@gnu.org>
References: <yplmeddhpj9t.fsf@mnet-mail.de> <86cyt1qvmt.fsf@gnu.org>
 <yplm34tupxua.fsf@mnet-mail.de> <861q9exmhe.fsf@gnu.org>
 <yplmbk8brl20.fsf@mnet-mail.de> <86v86im1r9.fsf@gnu.org>
 <yplmwmqxoq8i.fsf@mnet-mail.de>
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="14356"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 69083@debbugs.gnu.org
To: Raffael Stocker <r.stocker@mnet-mail.de>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 21 16:37:58 2024
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1rcofT-0003FK-G0
	for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Feb 2024 16:37:55 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1rcoTr-0007Mw-MX; Wed, 21 Feb 2024 10:25:55 -0500
Original-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 <Debian-debbugs@debbugs.gnu.org>)
 id 1rcoMw-0000wk-KD
 for bug-gnu-emacs@gnu.org; Wed, 21 Feb 2024 10:18:47 -0500
Original-Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1rco9I-0000KC-JV
 for bug-gnu-emacs@gnu.org; Wed, 21 Feb 2024 10:04:40 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rco9e-0005nE-5i
 for bug-gnu-emacs@gnu.org; Wed, 21 Feb 2024 10:05:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Eli Zaretskii <eliz@gnu.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 21 Feb 2024 15:05:02 +0000
Resent-Message-ID: <handler.69083.B69083.170852785722203@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 69083
X-GNU-PR-Package: emacs
Original-Received: via spool by 69083-submit@debbugs.gnu.org id=B69083.170852785722203
 (code B ref 69083); Wed, 21 Feb 2024 15:05:02 +0000
Original-Received: (at 69083) by debbugs.gnu.org; 21 Feb 2024 15:04:17 +0000
Original-Received: from localhost ([127.0.0.1]:49991 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1rco8v-0005m3-3Z
 for submit@debbugs.gnu.org; Wed, 21 Feb 2024 10:04:17 -0500
Original-Received: from eggs.gnu.org ([209.51.188.92]:59934)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@gnu.org>) id 1rco8s-0005ln-8M
 for 69083@debbugs.gnu.org; Wed, 21 Feb 2024 10:04:16 -0500
Original-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 <eliz@gnu.org>)
 id 1rco8P-0000Gs-NG; Wed, 21 Feb 2024 10:03:45 -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=4kvZ+Iv9MwqzXJcikRiFv4Cfj7Miyz2uSHLnNNLE0Ls=; b=a5ZOv9DjHjFH
 RswFCHCCBHsq2naXtEBuqlNNFB6wVc1DbMfgQEmo+1JdLWLlW+1o0xsybUZo8U0G2iDeHFCh13w2n
 uTVzcMbZfNziFgj/DVI0tOJ9F1HyByp8rMyQ+Fl/PTlOwsuz64xUzk5gljlDG4kC2uxXMU20kySQN
 XZo4BeMwKK1++djlvlFezXk6fL6cTQna2YdU58YNLsbWLjtyX3riDwzJ7Vf8jXl+Z+6JD8BEj/x+5
 uGq2o+T7c4SKSeAS6sKlG7ipXs5uJdCqJE2WqtCsGhJPsCdwQe20ujI2+Kx4/oDIUmSA3vRavBPcr
 rFnZ6C4yTbfOW3XHYsTG5w==;
In-Reply-To: <yplmwmqxoq8i.fsf@mnet-mail.de> (message from Raffael Stocker on
 Wed, 21 Feb 2024 15:13:30 +0100)
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" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.bugs:280386
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/280386>

> From: Raffael Stocker <r.stocker@mnet-mail.de>
> Cc: 69083@debbugs.gnu.org
> Date: Wed, 21 Feb 2024 15:13:30 +0100
> 
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> >> I have read this post, but it seems to be wrong.  I don't have any
> >> elevated privileges and it works without showing any prompt, at least on
> >> Windows 10.  I'll try to have my colleague test it as well, she runs
> >> Windows 11.
> >
> > Is your user a member of the local Administrators group?  Did you try
> > running this code as a "normal" user, not an admin?
> 
> I did run it as a normal user; my user has no (local or otherwise) admin
> rights.

Then it's possible that members of Administrators will get a UAC.  We
shall see, I guess.