From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ignacio Casso Newsgroups: gmane.emacs.bugs Subject: bug#54371: 29.0.50; read-char does not reset idle timer in some cases Date: Sun, 13 Mar 2022 00:27:59 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31497"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 29.0.50 To: 54371@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 13 09:47:22 2022 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 1nTJsm-00083M-7u for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Mar 2022 09:47:20 +0100 Original-Received: from localhost ([::1]:37568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTJsk-0006Rv-HZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Mar 2022 04:47:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTJsU-0006Rm-KG for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2022 04:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47708) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTJsU-0005mj-AQ for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2022 04:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nTJsU-0004V8-2j for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2022 04:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ignacio Casso Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Mar 2022 08:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54371 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164716121117282 (code B ref -1); Sun, 13 Mar 2022 08:47:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Mar 2022 08:46:51 +0000 Original-Received: from localhost ([127.0.0.1]:41605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTJsI-0004Ug-NF for submit@debbugs.gnu.org; Sun, 13 Mar 2022 04:46:50 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTJsH-0004UZ-EH for submit@debbugs.gnu.org; Sun, 13 Mar 2022 04:46:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTJsH-0006RW-4I for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2022 04:46:49 -0400 Original-Received: from mail-am6eur05olkn2037.outbound.protection.outlook.com ([40.92.91.37]:11740 helo=EUR05-AM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTJsF-0005mC-1d for bug-gnu-emacs@gnu.org; Sun, 13 Mar 2022 04:46:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kybDTqcMRfadZ84gqtqFk6TfEXaoo7CLcaxIVyxb3YEw+Oj1NZ4MQm3TuSimYPw/A6kEds9NUyshv1a9vIcOkw0BRPI0a/Tt6b4hyI6ChELnDov8CKUHD6omaMj0LceUnwXmAobuyQHwm2VDKThKBKqCenykHtlfPTEL9vRkKE8pfNGv3dI/tFBFFEtEW6CBQzu8O4oJJf/brVPb/bK9/8HZdV7EA6nyvlkDiE0SxQolO4dTjxjHBgzRIzvc0gL4RK6Ci0ABqGVRH8Fczhp1+MyNp0Vl7WJAT6B1i+bg9Hjv7v7LpxwmEr1xPQT2sDcThXZpBrCknMh2P9Q/wvD9VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7hKCXyyYfIIIpEgkWlokHIyDAPLIxw5VMowlAHOl9DI=; b=ew8q1un1H0/Msq5lpfTIpf/ja3d3sWTInFtCLFnBVwnSL0StyzTZ6e+UDFnuHKIfQ35DDVpSesLIWaGjuj9WikN1ruNQMzO0yGSJ4Z9xLKOnuWXKj47xdd8uFtOjydSp2WLQpcqF6nkbkB64cT8zkYqJzd3swbjJ8Xvx0U+KA74GTc321N4I5j+Suzb0HHqkRGrqp5vS1Zjf6O29HM6Q5yKHONo0/GPTvJLfIv41239qrW4As1zb0NiQXQvZ7tUNhL5/icBcFsJXBIHUsMWNwqEPGkq9FS/1p9q99AUGrMSXIc3SnsNjF42kS3qmoeQwXlRtO06QIG7JcuA5VSXPSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7hKCXyyYfIIIpEgkWlokHIyDAPLIxw5VMowlAHOl9DI=; b=j5/LyYVRWYjS5g/giObNdNsSYGQp88PHoHAJDRbcuD0CAWL+XWV/+Cs6PBGJcCZWYKY2QX2sfGstev7TK0PFBlvgUClhTlJ7S0LdKPa88VKChVyiDYUcZBoo+TyiSyYg8PTH0ZjsSk9HrP6zYLN95JGTqmy7IyXDxSb0PIJky5X2t15iFsJZP4GJUuf2ThgRjkjRFHkH9cJg9VKhUZ4oGdlt+qn2Vs4tqLkXCVHKXtOfBmy+ACjATxD4TCFQLmjHUc2i/Wun05RfGr8YzhG6Q85vKET8GYlTc2h3AJtziltU4gpNSDqW+J/OFfUe/KWIOSfpuTE9l5kVS/pSuBPigw== Original-Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by DU2PR06MB8262.eurprd06.prod.outlook.com (2603:10a6:10:2d1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.26; Sun, 13 Mar 2022 08:46:44 +0000 Original-Received: from PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::e05a:8d81:8648:b10f]) by PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::e05a:8d81:8648:b10f%9]) with mapi id 15.20.5061.026; Sun, 13 Mar 2022 08:46:44 +0000 X-TMN: [bHcflEvwR2BTY1kgiYwO4equgTeuKdFL] X-ClientProxiedBy: MR1P264CA0139.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:51::20) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <87sfrmnssz.fsf@hotmail.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fd65b9e8-8804-4e1a-a187-08da04cdffaa X-MS-TrafficTypeDiagnostic: DU2PR06MB8262:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uBiarTVi2SBEaTNRON1vVxUgX74Rj08BwQM0XUaGu+IC1vgGxixbHUDFykGoxm5Wt+vKkOftrREB5gIRR/Za/I1Y70jlmDMOmPgkXtKVKIdM/++QZFRIN7Fb42nfWjYPJ4by1Md11wT3W/7l6PDbf2kCMwAb3uZ4Oz2Z6AL6EJTpmSZGnHkUDeAZEPrpg2qC73CYDytrYF/Fn299GhGy3GaIuxu3+U/kVUNeDRLKgZTnECsox6axM3gNx4K08NpXEWwI1rV111TGAInA7iXwbmDsJCp5dGf+PDvUejowtnrKnjZ8+V+lkdvohu+KajPtp7MSKkUVxTQ3OlSWdvuipuLmOs0ghj3SiU++httbiBj+U7mrANE89ilkCqmn+PwsTRweo1f3ZngnU15zuA6mSsKPDi2IRVv6+TObrWEAJTTRAHrrsLP3AA/ohu37Vkp73Kp5RjQse7rcKus39MTm3mYwf5eUmfWI+qNm68rKqtphDHbxatasWs7p6nozDm/y26AeS9KOrRzAfLrGMr88Wvn22UaLVAchTIMQhfvL7p2CbyDb2YET4+AOSf+BkdanyrWJ02C/KPTAcdkSuHwvow== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0xtDAxo4YyF43KSFh1L9yA1OuT6L+yCL30Ch1p34EkWxLe8L3+QX+15sN7BItWyuvGlAr31Yz9wtewrz0bLYLii3jSoQEO5An98wfiKQctGMVHrz4SoLak7q0oEz5DXv+jonpe3vBVYTBHucTr4AKCM87hscmhVRW98bIozybFte3SeCTPX7Qyjlm0RrNTb2ar+RwqlQWnt25gsxwYKBkczLDv8lVIJdLSmHtwYmXXQ2K/ymEm7gH1WQdFe6MCs6Z0OqdnUQTT8SGz4hZDuJHyBs4b/F2CDckg7/nTNNWPGsQPiogyO72nz63OmbZnMp+5pQ9UFAHmvVvkA+mSVjVMbsDBosdE5DhVs/cF89rjX2uUDkA+oLnwOx+8Q7qumZiARkGONkEmGXh922Vii8LSmgFRz1go+5n3WQcWP2DpwzmYUYd0vXZJhHzMLs2U/vcybDuqS7DC9OYZB3LyU11Xcs/jej5J5iW8epnmSwPRULu1h1euOZo14/ej1QeVvLrbQc8XrauAbYnCYuXYwMpzgP7f6N44vA4qTGIXFhKE5+FpVNnKa9W7OOhwtFKy66fL6bvacARnc3tDUmCKnUbZe6uIwiFO5PpQCB7CKNbuQdeqgjU/Dk1l4i0dKSAr+3Vcvcc+bQhsrYf9GTqSCQfeJXe3b2UQapzOh/tjxFEPZqceL38+be06Dlh0oRoZ/eOue1fHj6LpZucgqebJDxOr1X4qWc2X/1wWFAJcIlfmXG7q7hsxAMlhRP6R gFZmyxTO7dsPXRhiSuh5DxCjivWwXN85MLI3Lv1EEwzzVT/3adJdZ1ZKgdGWKWKumhd2/+dEXPQjzwxAkn1zm8hw2/LCIfERXZ X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: fd65b9e8-8804-4e1a-a187-08da04cdffaa X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2022 08:46:44.0367 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR06MB8262 Received-SPF: pass client-ip=40.92.91.37; envelope-from=ignaciocasso@hotmail.com; helo=EUR05-AM6-obe.outbound.protection.outlook.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_06_12=1.543, 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:228287 Archived-At: Hello, If I evaluate the following snippet, after 3 seconds Emacs prompts me for a character and prints nil. (defun my-test () (read-char "> " nil nil) (message "%s" (current-idle-time))) (run-with-timer 3 nil 'my-test) However, if I evaluate the following snippet instead, where the last argument of read-char is changed to the number of seconds the prompt should wait at most for user input, it prints (0 K _ _), where K is 3 seconds plus whatever time in seconds you took to answer the prompt. This means that right after reading a character from user input Emacs still thinks it has been idle for a while. (defun my-test () (read-char "> " nil 10) (message "%s" (current-idle-time))) (run-with-timer 3 nil 'my-test) This is the reason behind a bug that occurs when resolving the running org clock after some idle time, for which I have seen reports more than 10 years old but not as much discussion as I would expect. This makes me think that Emacs does not behave like this for most systems and the problem is particular to my setup. My setup should not be particular in any sense however, just an Ubuntu 20.04 with default and standard packages. Emacs' is the only configuration I have ever tweaked in my machine, and this happens also with "emacs -Q", so it's not that. Can you please evaluate the second snippet to try to reproduce this in your machine? If you can't, I will be happy to provide any other information of my machine that you think may be needed to reproduce this, or to follow whichever steps you suggest to try to debug this myself (I would have tried already but all functions involved are written in C or too low-level). Regards, --Ignacio