From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yCFfAkrANWIwvAAAgWs5BA (envelope-from ) for ; Sat, 19 Mar 2022 12:36:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8CGPNknANWJO3AAAG6o9tA (envelope-from ) for ; Sat, 19 Mar 2022 12:36:41 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6F0C5E114 for ; Sat, 19 Mar 2022 12:36:41 +0100 (CET) Received: from localhost ([::1]:59714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVXNw-0002fB-Lp for larch@yhetil.org; Sat, 19 Mar 2022 07:36:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVXNO-0002eo-Jk for emacs-orgmode@gnu.org; Sat, 19 Mar 2022 07:36:07 -0400 Received: from [2a01:111:f400:fe0c::81f] (port=55200 helo=EUR04-DB3-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 1nVXNI-0001AI-U0 for emacs-orgmode@gnu.org; Sat, 19 Mar 2022 07:36:06 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bIp3YZ+NfI1n8OUCUC87tSxQsF+K0paMgYMVsNISdDvA3yapz0F7do0n7YfCBWxXykwxlOhqlVq0v89N8P+2ll3Di0tv6ccsPRrEAMgsm0nUw/V6YsB1YiCtfjUPD1iXqv5qkRmEZV5Pr26HjWUaDiChTVY4NceyxkSLwhrQBpkxmzc6iwZX3sztYZFslAAnZBn3f0annTgfHuML+XJHxPUgVfiQmDIgvN1R+qB+pclrbXTM12Kgh+FcNl1Jzq7+UGJnNxqaU+emcXKfPPTqD663Y+wul16W+JQg2DfJhfI0vt07XVkszlWomt+sw16fBfF/XpgJkCxmtPRb7MarOg== 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=vJHy9TwOMlHu2PvVwfGniEYc/YPjPTBMD2Z7FrZWyUk=; b=BjowvlnougojVYsKNCFuEhmn+Y84ZGaZFlQjVR9boctQsIginNRvDzgm7AXQEQCbDQtlQ1exTZEXWH0vKzmgU92rMqxjO6RL/1Qe9/+9JbbJoRAwIt3NhtPbvEK4uQO5EefXIaFcRpWfZYynwQDQe0EgSADSf0Ck+veutLb9BjXmw255YJRlkLjTYkU3GlNIzWVZGMpkwSlzyCYw9UpzN5/82zD/0G8xvlsK8IgzAFsD8gR48jtOOmNvGqKB54KKOGfyG3dGCH8W3Q+LB+j5JJ7+fheQsd5oAIKEMUb8WgtsB4jRhbKf07qp2UiMFsHVrA/8oQGaVEke4q8vd9ip4A== 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=vJHy9TwOMlHu2PvVwfGniEYc/YPjPTBMD2Z7FrZWyUk=; b=QSq9b62QUKK93/2MvwOlfvgelKm1lx2xR5ycmujBTreCYlj9zJv3fi2uTTXQ9wlQp9LrRmIk072U1z/YsW5qtkszM217RQlbHLnKKtnPbX7nZsaHl4bo79kqM7wjeQMH6X03Oj56I9Er7wmtjEXfq+oqXz8CIw2ly1ZBfnBjxle/NWLhLTndcysfwKRcTh2uR46aqb0NkE9VylLkpFkf/smXhtRGK0lCpSZ3yBBc2EVWPREplinV27IX/X0ujEyc+wy118dx1DepvWf+mm7pecVDaNdvgAPyjaV/Zr5eokCWPQhrLhIgxl4I5OaIMBOQOL018TGANcTXa/oQk3z8Ew== Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by AS1PR06MB8489.eurprd06.prod.outlook.com (2603:10a6:20b:4df::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.14; Sat, 19 Mar 2022 11:30:55 +0000 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.5081.018; Sat, 19 Mar 2022 11:30:55 +0000 References: <87sfrnqlbu.fsf@hotmail.com> <878rt6cjsa.fsf@gmail.com> User-agent: mu4e 1.6.10; emacs 27.2 From: Ignacio Casso To: =?utf-8?Q?Rom=C3=A9o?= La Spina Subject: Re: [BUG] Resolving idle clocks needs multiple keystrokes [9.5.2 (release_9.5.2-24-g668205 @ /home/ignacio/repos/emacs/lisp/org/)] Date: Sat, 19 Mar 2022 12:08:54 +0100 In-reply-to: <878rt6cjsa.fsf@gmail.com> Message-ID: Content-Type: text/plain X-TMN: [R3l+hsItkNjYNAuIpMHafA02Iix5EfO+] X-ClientProxiedBy: MR1P264CA0044.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:3e::6) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <878rt6p4ba.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d375c899-8dfb-478f-ecfc-08da099bee3f X-MS-TrafficTypeDiagnostic: AS1PR06MB8489:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: apA6+UKzzf/sWMOpGFl+ZCfi0fXztrmvI9xzwSFr3QFYp6fMJAkoXKSRiVViXzxtrAugTGY33sKc4GME8tQn7tplo41FhlxIW/miROcWI6y+m950naM3EZJiI1jeWJwzJA11OlaaEo0uV2jBpBfJ6XzUDYhujoKEl/jjsSCBITDHou/FduTJZiqEIWZQpggkgL1kqOTg/oPxAWSLD2zE1k6+usjbeYVyu8RxeG3ppvFd3dFZ+oYBCiDLKBlCjzSa5YsNm2s8uWTyv3shB+ngT8rO02E9dD/ZHdD292k+VaK8C095/uht3XdjurBBOjRnZ1Th6AdYZl9IuTB5C3Z1D4ef35ap8HvDl0E0Z9UAHkAwXXm0TagWGZSvP1fm/hRVFxM6D17OGrd26n2Yiqo/HG0ZtQqpK3oWWmkAaxmrfj4kQIQ/Uh4AkyDqlSSGYT+eYRbHsjOqsWv4BmgniOY6U/lsqERADuxrpyRNCWJOy7DOohQVYliaT9y6SmH4soQ2z0XU2q9XnOKhCc6Kq5rAkV8Y/oYhw6L02vwhc72ws0sMQY5XDhZ/a18l0w6UJ378manV2rxE9q4oZr48H1+ZktgdlGcbOsRtDzd6rB23ZXTFjCtDeYhVVZofLNx1R3CY X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?VEQqd5YSZa6UjR33akgNOnWOOOBFuNIi/m/oVut6olo7T6FUeY66WUt80tEG?= =?us-ascii?Q?2jCS9jQpatIBmwMsnPm4TRaaj1sDqGCfkmk2gWhPNwdV5w42OTgxuNHiKU4x?= =?us-ascii?Q?wF4P+7YZUTFrWCoydAl+/q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ascii?Q?9cpvZcAULevxH803I6QeVFY+pjlcPwExAiW/LiRWFM4PzmumTgW919DsF1ct?= =?us-ascii?Q?HmFrmtXBv0QUDzgD5Z9zCxJfKcj6gl45QMJjjBVbfEBw4/aWMKONzGsKIyJ9?= =?us-ascii?Q?uxjsjoR1ZdA51HIe/XlE5pLbN9K/KhYkMQ=3D=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: d375c899-8dfb-478f-ecfc-08da099bee3f X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2022 11:30:55.7793 (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: AS1PR06MB8489 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:111:f400:fe0c::81f (failed) Received-SPF: pass client-ip=2a01:111:f400:fe0c::81f; envelope-from=ignaciocasso@hotmail.com; helo=EUR04-DB3-obe.outbound.protection.outlook.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RDNS_NONE=0.793, 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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647689801; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vJHy9TwOMlHu2PvVwfGniEYc/YPjPTBMD2Z7FrZWyUk=; b=RrRlO5FQbw60Eviqwh2hoiPKIr0zAXbybNyJgrTZug87cuaPypdiF4BQsHlh0y5TmFoAuQ u86VLIshO/X+NisHerwNBpPf7s70BaN2oiqM40tz4L5Mtdar6IE4oHRHyfQW3Rfx3S6kaw OdaxWEmZgQgh7uT8EVsYSH+yuPGdHXZwQ8TEwQnF0tEbNK+sGcvryT+dUG9ZbzVh4p2oHV Y6JTJ6md8TeXi80JdsmpLWQUJmOFe7gy3YtO1aRLkx5agrzhZssYlJIlGV8md4I6d4qbYw Yr3b0sirRO30R7OjqoW6LeMXoA8VnPzpHCkRm4WN1KWWwGzSDw3DgR8pG3xg2w== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1647689801; a=rsa-sha256; cv=pass; b=YvWw9xhtt9VASPbQ4vvsF30F7tLSuRkLfZ+W3x66gp2dnkOfABz/ypG5vsVpUos9EwuQ3j 8QpLFO7r5860w2vRoAQQIiYTgCzeIVaSbt2T7yEXYxmZfbLiqeLClcGsjP6yoClnwQvSdF qpOIvxCTTMvZsKXSUhj3KxqTDbIIrFP+kegH8NyOc89EANwdgGh9FUGg0MFUA2WT0Y4etr H/muo08b19TGx6kAIRuSDcT6OiTOPhz6oh0DrSyhyG1+6W1hKgnAHxjFRFAAfX7z5vyBeZ CuEwYGnVn95pBGRHV6GovnZsaXOyZLzHu8HOolu6xhv/pQRu2dJFFJjYa6UqkA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=QSq9b62Q; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=QSq9b62Q; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6F0C5E114 X-Spam-Score: -5.14 X-Migadu-Scanner: scn1.migadu.com X-TUID: c6ytTszT1oLW > Hi, > > I don't know how closely it is related to your problem, but I've > reported another issue revolving around the use of read-char for the > prompt to resolve clocks. See > [[https://lists.gnu.org/archive/html/emacs-orgmode/2022-02/msg00278.html]]. > > Unfortunately I an not advanced enough in Elisp to know whether using > another function than read-char would solve your problem as well as > mine (maybe read-char-choice waits for a valid char, while resetting > the idle timer ?), but it might be a hint. What do you think ? The problem with `read-char-choice' is that it does not seem to have a timeout argument. `read-char' has, and `org-clock-resolve' uses it to update the prompt message with the current idle time every 45 seconds, calling (read-char ... 45) in a loop until it returns non-nil. With `read-char-choice' that would not be possible, and if `org-clock-idle-time' was N, after the N idle minutes, the prompt would appear saying something like "Emacs was idle for N minutes, what do you want to do?", but M minutes later the message would still be the same instead of replacing N with N+M. The patch I sent already fixes the bug I reported anyway. For yours, I suggest just wrapping `read-char' in `condition-case', unless someone knows of some other appropriate function.