From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#49997: 27.2; idle-time reset when switching desktop-page Date: Fri, 20 Aug 2021 10:19:06 +0200 Message-ID: <09998a72-76dc-42a6-dc15-612cbc942863@gmx.at> 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> <83czqb56i2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15675"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49997@debbugs.gnu.org, larsi@gnus.org To: Eli Zaretskii , Peter =?UTF-8?Q?M=C3=BCnster?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 20 10:20:14 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 1mGzl8-0003qx-J8 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Aug 2021 10:20:14 +0200 Original-Received: from localhost ([::1]:38950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGzl6-0005Ey-M3 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Aug 2021 04:20:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGzkw-0005DM-Nr for bug-gnu-emacs@gnu.org; Fri, 20 Aug 2021 04:20:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49621) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGzkw-00032S-EN for bug-gnu-emacs@gnu.org; Fri, 20 Aug 2021 04:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGzkw-0007x2-A4 for bug-gnu-emacs@gnu.org; Fri, 20 Aug 2021 04:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Aug 2021 08:20: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.162944757130520 (code B ref 49997); Fri, 20 Aug 2021 08:20:02 +0000 Original-Received: (at 49997) by debbugs.gnu.org; 20 Aug 2021 08:19:31 +0000 Original-Received: from localhost ([127.0.0.1]:32934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGzkR-0007wB-3N for submit@debbugs.gnu.org; Fri, 20 Aug 2021 04:19:31 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:37055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGzkA-0007vj-Fp for 49997@debbugs.gnu.org; Fri, 20 Aug 2021 04:19:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1629447547; bh=YAForaoMykHvcuT/RkxilIk2xaOGiv7A+URVt+Hl2KI=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=GoZ62hKE0+S4kqcKxl+X0MtN/Hlhc3CmV0aJatfwL97ReMSO4PFA8OUfHQVgd+wo9 CXxzmrT0Szr7RDbtcluF4a1SexXOTYN8ku81J71YcgduFMJAHdl6w+HaYEEV/NCteu D9LgezuqDRtAJbqLoxaal3E6efqvJrIhiogCDUq4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.102] ([212.95.5.218]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mkpf3-1muyaC1uaV-00mICR; Fri, 20 Aug 2021 10:19:07 +0200 In-Reply-To: <83czqb56i2.fsf@gnu.org> Content-Language: en-US X-Provags-ID: V03:K1:zEy1Eb+c81iMVlVS6cXfVRKXilg005kk0EgjXOulFJapBCMgt5s QpPdh6MUM7lRYvyUbp8rWv2bSbLcsOFjIpl+A6WHYjVXghXJZAMfToI0xhvCopQ3xL+msKF patZU2inrstna6vMiLY4Gh+IneC0X5dzhyhaH6+2giQGToXLKHs1qzBvSWSykKIfTe2c2xw cETGXdRNI/Va9JrqEmFlA== X-UI-Out-Filterresults: notjunk:1;V03:K0:dLEcL9RGOKU=:0TS3ut3pr+PbaHbK7s0/YX SYOnwakO88fMlLsJKUUB3hCBZAHokmUlIVfnrnlSJdpRllQi8u7OHIPTbiS6nYoOMP8VX7OB8 b1OBDCOIGKeUDqxP5WQ4oVVNRb0N7PDf9CIICw2ZOha0lnjj7ioLi1SJUFOigVMV8OJZTbgNP o2PnIjfMoX3SImYw/nObceJF9Th1zZhKybPt5tTYHkaFRtJhz7MteRKqw2lI9tyuhlLQScwP2 kcW4NXXo58qdkp9nyx83Cda/wW0Nf65kejwayFGRKBT+yssLWrji5jvpSsBLRCTC33tdP90AS JHAhkcIvrrIICnJNC0Vhv9ofuYwpn2ik/qM6goX3GeyBEvjlPAU3ZHgL/LngCQZ9R4XCICMj4 0dUYf6SiubYbr2plw96jpirO60pvjHIF2J2lqf+VsPki/OixUjO6xX1bAcI8JrUYY3WkI0TOi PljJBYw35Exk2yhsBoa8BDDH7nPIuh67blKnFg+rbZFJ2cE5iHiD6buH17gpicJwkih+8RfiO PdEOvKkXPWenRm0a/Kq78PDBPAY1UnsHDjAJjgkaQIcuNVK4rs3PIwgEOgVFQqaTO0Wi5O6li a3A+42eisVHcDYtIbjggwK4HAyxlUf/kZ8FUTyfGAhlBdTBiacshTT4ye58rSn5zANYC6D6mp CIJmKgVmRnTgwEt2xsNkNjTMidnewyOi3aDUiZuWLBCnD5cHBSpe20yMN+6UmmxxTQphSLepw 5z4DsmxPdgdM9JiBBH13X4uqsL4mNQWFOHmMTHv4dnt4e3gKEZN4Hy6xJhUSxTvr97SBHLqs 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:212257 Archived-At: > 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. Until 2016 Qselect_window was the only event in this group. And when Michael fixed Bug#23207 by adding Qfile_notify you said Anyway, I think we should simply check all the special events that are not user events here. If they don't have a binding in special-event-map, then the test will always fail. What about focus-in/out events? Or xwidget-event? and we finally ended up with && (EQ (XCAR (c), Qselect_window) || EQ (XCAR (c), Qfocus_out) #ifdef HAVE_DBUS || EQ (XCAR (c), Qdbus_event) #endif #ifdef USE_FILE_NOTIFY || EQ (XCAR (c), Qfile_notify) #endif #ifdef THREADS_ENABLED || EQ (XCAR (c), Qthread_event) #endif || EQ (XCAR (c), Qconfig_changed_event)) > 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? Here we have (setq while-no-input-ignore-events '(focus-in focus-out help-echo iconify-frame make-frame-visible selection-request)) so this set and the above are certainly not "in sync". But I have no idea how these two sets are supposed to interact and whether and how they should be presented to users. martin