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: Fri, 01 Apr 2022 20:22:00 +0200 Message-ID: References: <83sfrmkvuy.fsf@gnu.org> <87lexduc8w.fsf@gnus.org> <83pmmpls5g.fsf@gnu.org> <83ee35lk8r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27034"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 27.2 Cc: larsi@gnus.org, 54371@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 01 20:51:13 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 1naMMa-0006tn-Pw for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Apr 2022 20:51:12 +0200 Original-Received: from localhost ([::1]:34970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naMMZ-0006fx-7x for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Apr 2022 14:51:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naMMQ-0006eo-SS for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 14:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49475) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naMMQ-0007He-Da for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 14:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1naMMQ-0004lH-8g for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 14:51: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: Fri, 01 Apr 2022 18:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54371 X-GNU-PR-Package: emacs Original-Received: via spool by 54371-submit@debbugs.gnu.org id=B54371.164883906118297 (code B ref 54371); Fri, 01 Apr 2022 18:51:02 +0000 Original-Received: (at 54371) by debbugs.gnu.org; 1 Apr 2022 18:51:01 +0000 Original-Received: from localhost ([127.0.0.1]:43372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naMMP-0004l2-Be for submit@debbugs.gnu.org; Fri, 01 Apr 2022 14:51:01 -0400 Original-Received: from mail-oln040092065064.outbound.protection.outlook.com ([40.92.65.64]:37284 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naMMN-0004kp-A3 for 54371@debbugs.gnu.org; Fri, 01 Apr 2022 14:51:00 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OFAz74sV6OfEOO/OtF1OfPGh8QOJQxFt5aVkDWoDIjpUJu3tstE+kBwua5IGYU9AcZTBr4xEoEmaUWy6oKjR0/WEmD7EfN3oNu7qcmUo6LS1bz+IAr3GGw/vDp+DPrIrfbgprP4AJLHHpONsKDivQRAYDBw60JhyrybH17V6vCltjQMZ+a/ACDIvEJ3grf+tihUHG9G2Vtf5IAc5vIAwDi9JVkBLSbLep7RNyQ90N/+9hNYHRpaU+TuT17Gtaw56lOM1RtgzbpRxwPty+ImFu2EGykzMCnvKeVvb6lf1sw493iLbWG2BTDe23ZmtE/2M0G3+eTAo0kVF02lqhoUnIA== 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=B31RyayMVssafnYHn1dOa1tl0jJ3mJZfu4e5RGsJCSU=; b=JE5Y66tXxvAes7wE+SJ3Um4/tVKPIQ/BmBiiZ5iS3GugGgbNZT7qMwrfLrRV44keYpbVmfT2MxhlKNrOYKHFJ8f+Qq66HD+wfAGfbZvKUKPjAY7aUNHAleFvsSrgQwep9tywYotUF7/QB8Te7KowAkcLwkuMTc4gRAYnCWXqyhyVv6uwJ4ivcbYUXayU96W28B9LAzhJjZpU0zXwT5hQ61Wl9CGDBR+2bmaINp0fHBjKnuwhnJw6s0hmyMcokKa+R2+4FubOpqn8HIU/EfxSZmTiBJgPIjp2KZczXdXiVR6IXgzCjHEzm8gmF2V6b2yZC1PD1FgWf3V6SRF00zvxTw== 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=B31RyayMVssafnYHn1dOa1tl0jJ3mJZfu4e5RGsJCSU=; b=JOFNZEu8TSxmVkQ68885nQaZoWIMO8MckUiHGDX+7mZhHl08zw0gS9k7PmJpKi6tnADVppmhtukQg9S7cPlKzgZR4p0D2Ue9iLVPyaJOQd1NWOKW7iZe0KoT6N/dhhov237Ppu2dpbQTm8xHlFYG78wxcKmWVt1fOjClMKaizMxUH8qEB7L/FU410G7NxYm68TxR/uG7KHykYtIQLYvBD4jY9CeJv6PUYcRwdWiFyJTJ+F85swg+IItZRBAoB6Ik7R6GSiBZuCU04tzOIEpGd2GgjvdJneSXEDH5R2VWQuIXfliCooviDSGxQxq2DhpscEM5oZN/0jZowuqFm/CmMg== Original-Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by PAXPR06MB7903.eurprd06.prod.outlook.com (2603:10a6:102:1a6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.25; Fri, 1 Apr 2022 18:50:52 +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%8]) with mapi id 15.20.5123.025; Fri, 1 Apr 2022 18:50:52 +0000 In-reply-to: X-TMN: [KjgXArslckgldgt398Cn1J15E4EfJisN] X-ClientProxiedBy: MR2P264CA0064.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:31::28) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <87sfqw63jv.fsf@hotmail.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4af7b704-f1d9-4919-8b4a-08da14108b92 X-MS-TrafficTypeDiagnostic: PAXPR06MB7903:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cUcEFjqC4TjF7VieSSUVwxzal37ufaoYoC0bLgZk11i8a0Q60BqgEwt5Bb3DLFBcUJVzyVh+4jS/giuocI3vYh5CovRC3Gc2FfjOsMqiHnQ7uR0bXSZLlFshL4ZP09v9Ik+Ep9qQEqo6ryfbqSIknkk0jK5en4MApH2TCnZwTSEV1UXTmvl6D+88CqkpjSpfsGevlAywXgTKufCaMIgoWXVL4Kjc/DVKQLTIBZpo+i8HmYZ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5NOfYat+Z80aCOX+ubLXfd4hKp5AcznmSMbyUpUicCcoOxZv+JYmzXqhKOFUlvFJbRFXY1vVwMiq5j35GzZGA9M6jGUyGDXAM72xv8rel5ymNZjS VE9HKwcA5ul1zXKFEpVTRu6p7VG+n05gvlncOfmr9wg6AmKLfgRf5AIpJMJgctpBOH7Df/e5RO+ugn7jlXAZ5i1QDL/H/Xo9bd X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 4af7b704-f1d9-4919-8b4a-08da14108b92 X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2022 18:50:52.2983 (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: PAXPR06MB7903 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:229238 Archived-At: Hi again, Since my other bug report has already been closed, I've picked up again the next one in my pending list, which was this one. > However, I still think this should be documented somewhere. The only > thing I found was a comment in keyboard.c, and that was only after you > pointed me to the right email thread. After searching again, I've seen that this behavior is indeed documented in the section of the Emacs Lisp manual describing `read-event'. > > And this is not only about the use of read-event inside timer > functions. Currently the Idle Timers section of the manual would make > any reader think that these two forms would produce the output "A\nB" if > the user takes a few seconds to input a character, but only the first > one would. > > (progn > (run-with-idle-timer 1 nil (lambda () (message "A"))) > (read-char "Please wait for 2 seconds" nil nil) > (message "B")) > > (progn > (run-with-idle-timer 1 nil (lambda () (message "A"))) > (read-char "Please wait for 2 seconds" nil 20) > (message "B")) > > So as I see it, the manual is incorrect right now, or at best incomplete > or ambiguous, and a footnote could not hurt. What do you think? So unless you see a problem with this, you can close this bug report. Or if you want, I can send a patch to update that section of the manual with a footnote, and maybe some other relevant docstrings.