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#54371: 29.0.50; read-char does not reset idle timer in some cases Date: Fri, 01 Apr 2022 22:36:12 +0300 Message-ID: <83sfqw4mvn.fsf@gnu.org> References: <83sfrmkvuy.fsf@gnu.org> <87lexduc8w.fsf@gnus.org> <83pmmpls5g.fsf@gnu.org> <83ee35lk8r.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17729"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 54371@debbugs.gnu.org To: Ignacio Casso Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 01 21:37:11 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 1naN54-0004QZ-PT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Apr 2022 21:37:10 +0200 Original-Received: from localhost ([::1]:48976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naN53-0003sS-Ee for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Apr 2022 15:37:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naN4w-0003sJ-AH for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 15:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naN4w-0005Hl-23 for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 15:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1naN4v-0005x1-Up for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2022 15:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Apr 2022 19:37:01 +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.164884176722811 (code B ref 54371); Fri, 01 Apr 2022 19:37:01 +0000 Original-Received: (at 54371) by debbugs.gnu.org; 1 Apr 2022 19:36:07 +0000 Original-Received: from localhost ([127.0.0.1]:43475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naN43-0005vq-Is for submit@debbugs.gnu.org; Fri, 01 Apr 2022 15:36:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naN41-0005vL-HG for 54371@debbugs.gnu.org; Fri, 01 Apr 2022 15:36:05 -0400 Original-Received: from [2001:470:142:3::e] (port=35996 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naN3w-0005Ec-3M; Fri, 01 Apr 2022 15:36:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wa71pHRp5NchMbFU+SfBkUYM/FSerRHJNc5ov2pY3vg=; b=eQCbAFS2epDs fLWLqymVzlelJkU9ahsuoTzeWIxY7src6frs6bQV41HTtDzzAmTYjr8B9dw59WVHqB9eWHzh2xB0U jLqgBcTAqdv+7N6nPIGH4UfR9gOWnPiT7AzSqL2HekrRGhCGAueIR0AZ+lCOcMxiTPUiDYkUqZRUM V4zlOf7mlYoAn7nK1ZF7Pn/qNaWkRr7nzSEXYcBl/J9ux4t7+Zr4jLHyidjXItwJLb4zpyy/6PvGH 9+IVBE/oY+UlYJCOX1fwjMb9L6nDY6rsyL0QAc0605vskbmkkFNUImazMpWMx75au+C5TepFL+ZMW lwT6y6F581d5LDNN95fWpg==; Original-Received: from [87.69.77.57] (port=1890 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 1naN3v-00037g-JX; Fri, 01 Apr 2022 15:35:59 -0400 In-Reply-To: (message from Ignacio Casso on Fri, 01 Apr 2022 20:22:00 +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:229239 Archived-At: > From: Ignacio Casso > Cc: larsi@gnus.org, 54371@debbugs.gnu.org > Date: Fri, 01 Apr 2022 20:22:00 +0200 > > > 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. Please send the patch, and let's take it from there. Thanks.