From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gKStCvaUS2M2LQEAbAwnHQ (envelope-from ) for ; Sun, 16 Oct 2022 07:21:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2MTBCvaUS2MCEwEA9RJhRA (envelope-from ) for ; Sun, 16 Oct 2022 07:21:58 +0200 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 D963218445 for ; Sun, 16 Oct 2022 07:21:56 +0200 (CEST) Received: from localhost ([::1]:32978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojw5z-00048F-Ey for larch@yhetil.org; Sun, 16 Oct 2022 01:21:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojw5U-000486-4Z for emacs-orgmode@gnu.org; Sun, 16 Oct 2022 01:21:24 -0400 Received: from mout01.posteo.de ([185.67.36.65]:60855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojw5R-0005sr-UK for emacs-orgmode@gnu.org; Sun, 16 Oct 2022 01:21:23 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9483A240026 for ; Sun, 16 Oct 2022 07:21:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665897679; bh=UnBE5XSJI7C4MqB4TfWBXKvhfkslosUiXv0iIFPZUfQ=; h=From:To:Cc:Subject:Date:From; b=PQWjAW1r4GIq8OK0sm5OIT57nEXvuB+l9kuwQOCOEA1/FaVsl1wbeZA7LLJG1ksoU J7G0vrhW69eHu+T8sAuBlWHtFAO04xlV/ToKeCrOfL3fg4AptObvU/HG9yiBBFODbi BaLAmIDJOpvv3XL10Q7knyl5xaD8qGAgLh+AFrzXDl1rO28Ehvy1SebyKnAdJ+2nNj gDB4vMk0rq+1AwRIXoqcI8y2fi9dqbumRW/H7CHbW/rL+YYowKXbqU26WtG06DCpNU L/HHhy0TBuAZi0zeGlfzt7sa6xVxga55/FZBHGm2XfM4xxZmpynZopS7T5PlTgtbQl OQ3fa3qJdrCAg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MqpPp0981z9rxD; Sun, 16 Oct 2022 07:21:17 +0200 (CEST) From: Ihor Radchenko To: Ignacio Casso Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Resolving idle clocks needs multiple keystrokes [9.5.2 (release_9.5.2-24-g668205 @ /home/ignacio/repos/emacs/lisp/org/)] In-Reply-To: References: <87sfrnqlbu.fsf@hotmail.com> Date: Sun, 16 Oct 2022 05:22:06 +0000 Message-ID: <87tu44pcld.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665897717; 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=tkx548hLldRut3RrXESRA+8O3pjQgdDIguMC9Fb1acg=; b=ITIolQaVfWoDawph4+rYiPviQ4CduBPLK5/z5sXwSAUxnfIr2jnfqKdoahkZUBL8QEoB3Z paRz8EpwxC/UyWsY0cQU3mu3GRGSvG3I/5dVswyeJARF+KqngEWxISJE4TMpyvVjzMtISP WBtsVPb90JhVgoRCvwfN2Hv1gRG8oURQquwddo74O3RGz/diVbcuNqpqAs+VCI9KET+xGt TJs9j8mZZdaOsonBRf5dBpGMUbyv5Lk05OJKe0KoGZM676Z9VTuXooH5218L3hKZHgnI/G 700Z3Pf/Uz7u4NsZZ3lKpH2bvrQ09BbSyM4FUW3Tbd9YCVdpxWHt+Vmg+MJsaQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665897717; a=rsa-sha256; cv=none; b=pQqLY0nNyllxGX4zXUzbIyHMogSl8D4jd+gbWkaS+VCgYcJDh6XkA7wsDRI9SCo2LaWHmY Lj4uyYF7geoqfxj7qX/82hQSdRRUvDMnn3+XVXTRKsfd9xYXe79OeCY7RBxImsLeZDNQKn SII3BGlbNGlfm/cuSpfEVqmfu/DIexxMj0F7b5Qut47w8O7Wd3KN6qZp0iLt8Enr+7VKE7 npUxde3B5z+hohoVC4+2QLjZQGYIIWP5I3LPVpXR0oiLRJ4hrSmTevhdCetPCFLEwWKICX /A1xxKbjG7U+iko6O2EOhGXYgoRtFcLod5GMGAQL04vB2kuH81XaS4thf2Txeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PQWjAW1r; dmarc=pass (policy=none) header.from=posteo.net; 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: -2.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PQWjAW1r; dmarc=pass (policy=none) header.from=posteo.net; 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: D963218445 X-Spam-Score: -2.10 X-Migadu-Scanner: scn1.migadu.com X-TUID: xLpmxYuGh+T8 Ignacio Casso writes: >> So the problem is in (org-user-idle-seconds), which in my window system >> boils down to a call to (current-idle-time). It should return 0 after >> answering the prompt, but in my system it keeps counting up. At this >> point I stopped investigating since that function is defined in C. >> > > I have investigated this a little bit further and it seems that reading > a character with read-char only resets the idle timer if the SECONDS > argument is nil (which is not the case here) . I reported it as a bug to > bug-gnu-emacs@gnu.org, but it seems there is a reason for that. See > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54371 Fixed on main by merging your other patch. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=31f2510995c938d96947086ecd807d9b148ec7f8 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at