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#51094: Check if run-with{-idle, }-timer needs to create a timer Date: Fri, 08 Oct 2021 14:13:10 +0300 Message-ID: <831r4vzs55.fsf@gnu.org> References: <87a6jj97u1.fsf@posteo.net> <87a6jjn6af.fsf@tcd.ie> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8856"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, 51094@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 08 13:14:12 2021 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 1mYnpL-00026E-Ok for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Oct 2021 13:14:11 +0200 Original-Received: from localhost ([::1]:56040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYnpJ-00089x-Pi for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Oct 2021 07:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYnpC-00089Y-FD for bug-gnu-emacs@gnu.org; Fri, 08 Oct 2021 07:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37803) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYnpC-0001lB-7q for bug-gnu-emacs@gnu.org; Fri, 08 Oct 2021 07:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYnpC-0006dt-3t for bug-gnu-emacs@gnu.org; Fri, 08 Oct 2021 07:14:02 -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, 08 Oct 2021 11:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51094 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51094-submit@debbugs.gnu.org id=B51094.163369162225492 (code B ref 51094); Fri, 08 Oct 2021 11:14:02 +0000 Original-Received: (at 51094) by debbugs.gnu.org; 8 Oct 2021 11:13:42 +0000 Original-Received: from localhost ([127.0.0.1]:49349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYnos-0006d6-96 for submit@debbugs.gnu.org; Fri, 08 Oct 2021 07:13:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYnoq-0006cu-GE for 51094@debbugs.gnu.org; Fri, 08 Oct 2021 07:13:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53702) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYnoi-0000U8-BS; Fri, 08 Oct 2021 07:13:34 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3055 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 1mYnod-0003s2-F5; Fri, 08 Oct 2021 07:13:30 -0400 In-Reply-To: <87a6jjn6af.fsf@tcd.ie> (bug-gnu-emacs@gnu.org) 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:216708 Archived-At: > Cc: 51094@debbugs.gnu.org > Date: Fri, 08 Oct 2021 11:46:00 +0100 > From: "Basil L. Contovounesios" via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Philip Kaludercic [2021-10-08 09:36 +0000] wrote: > > > I have seen a few packages use run-with-timer or run-with-idle-timer, > > where the SECS parameter is configurable with a user option. When this > > timer doesn't repeat itself and it makes sense to set SECS to 0 when you > > want something to run immediately, I don't think it makes sense to > > create a timer object. > > IIUC, the semantics of SECS=0 (alias nil) is not the same as eager > funcall, because timer functions are intended to be run asynchronously > in a separate command loop. So often what is meant by "now" is e.g. "as > soon as I quit the current active minibuffer". Right, and that's one more aspect of this change to consider. It could very well change the behavior in incompatible ways, so I wonder whether we really should make this change.