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#49997: 27.2; idle-time reset when switching desktop-page Date: Wed, 18 Aug 2021 14:36:53 +0300 Message-ID: <83czqb56i2.fsf@gnu.org> References: <87eeb0mkxa.fsf@a16n.net> <83tujwdwe0.fsf@gnu.org> <87sfzakczt.fsf@gnus.org> <83eeauaihs.fsf@gnu.org> <87a6likc5a.fsf@gnus.org> <0e03c073-2678-5f47-1a92-6a585c8dfe19@gmx.at> <87czqbi03a.fsf@a16n.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6103"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 49997@debbugs.gnu.org To: Peter =?UTF-8?Q?M=C3=BCnster?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 18 13:38:10 2021 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 1mGJtZ-0001QA-Q1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Aug 2021 13:38:09 +0200 Original-Received: from localhost ([::1]:45088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGJtY-0006yo-MR for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Aug 2021 07:38:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGJtS-0006ya-F3 for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2021 07:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGJtS-0001u1-89 for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2021 07:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGJtS-0003iL-6A for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2021 07:38: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, 18 Aug 2021 11:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49997 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 49997-submit@debbugs.gnu.org id=B49997.162928662414208 (code B ref 49997); Wed, 18 Aug 2021 11:38:02 +0000 Original-Received: (at 49997) by debbugs.gnu.org; 18 Aug 2021 11:37:04 +0000 Original-Received: from localhost ([127.0.0.1]:55022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGJsV-0003h6-Tt for submit@debbugs.gnu.org; Wed, 18 Aug 2021 07:37:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGJsU-0003gY-3D for 49997@debbugs.gnu.org; Wed, 18 Aug 2021 07:37:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43528) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGJsN-0001Nq-OO; Wed, 18 Aug 2021 07:36:55 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2639 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 1mGJsN-0008R8-Ar; Wed, 18 Aug 2021 07:36:55 -0400 In-Reply-To: <87czqbi03a.fsf@a16n.net> (message from Peter =?UTF-8?Q?M=C3=BCnster?= on Wed, 18 Aug 2021 11:16:57 +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:212127 Archived-At: > From: Peter Münster > Cc: Lars Ingebrigtsen , Eli Zaretskii , > 49997@debbugs.gnu.org > Date: Wed, 18 Aug 2021 11:16:57 +0200 > > > I can offer the attached trivial patch. Peter, can you try it? > > Thanks. Yes, it works as expected. > > Now the question is: is this the right thing to do? > > According to Eli > (https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-08/msg01016.html) > it's not so clear. > > But on the other side, focus-out events and mouse movements keep the > "idleness" too. So I guess, that frame movements could fall in the same > category... FWIW, I think this is a slippery slope, let alone backward-incompatible change. If we want to go anywhere near this method, I'd suggest to create a variable with a list of events ignored for the idleness purposes, which users could customize according to their preferences and usage patterns (and, it turns out, their WM). That would at least let users some kind of fire escape, whereas hard-coding arbitrary events that we happen not to like this week doesn't. Btw, idleness is not the only feature related to this gray area: there's also while-no-input, input-pending-p, and throw-on-input, to mention a few. Should these be in sync?