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#52235: 29.0.50; Suggestion: refactor time.el into a more general 'clock' framework Date: Thu, 02 Dec 2021 09:26:21 +0200 Message-ID: <8335nbqxgi.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17298"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52235@debbugs.gnu.org To: Arthur Miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 02 08:50:16 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 1msgr9-0004Lz-Uu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Dec 2021 08:50:16 +0100 Original-Received: from localhost ([::1]:37182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msgr4-0007Nl-BD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Dec 2021 02:50:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msgUg-00073H-Kz for bug-gnu-emacs@gnu.org; Thu, 02 Dec 2021 02:27:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1msgUg-00041x-Cl for bug-gnu-emacs@gnu.org; Thu, 02 Dec 2021 02:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1msgUg-0005pF-7E for bug-gnu-emacs@gnu.org; Thu, 02 Dec 2021 02:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Dec 2021 07:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52235 X-GNU-PR-Package: emacs Original-Received: via spool by 52235-submit@debbugs.gnu.org id=B52235.163843000522367 (code B ref 52235); Thu, 02 Dec 2021 07:27:02 +0000 Original-Received: (at 52235) by debbugs.gnu.org; 2 Dec 2021 07:26:45 +0000 Original-Received: from localhost ([127.0.0.1]:46394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msgUP-0005oh-Di for submit@debbugs.gnu.org; Thu, 02 Dec 2021 02:26:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msgUL-0005oS-76 for 52235@debbugs.gnu.org; Thu, 02 Dec 2021 02:26:43 -0500 Original-Received: from [2001:470:142:3::e] (port=33182 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 1msgUF-0003yM-Uq; Thu, 02 Dec 2021 02:26:35 -0500 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=9/K8xT8F+d+vpjTiyYFnuOsktqWznNiGbzVSmpbG1nk=; b=nNZ/Pqs//zeq CxWA1G9IqsD2NkJvMW2IiRdCpqwcYnKefHZVtEyHq2Hv6r4i4x5fRjoJUQCyfLrED43fhcOH2l69g 5+/UtLD79lpnKMmsvwR8bFZmqc0epp+6Zs0/eS5WTKunpUp0iGtUxDGzAbeHwQnWzATwpjpndvO60 +dfF1tD8xiQl+qzd//7fmTnPsb4R3IWnzG3Gvu1ddiKxl0gQn63ni7otIvoQaMaQiAS0dtaYIp/NH HxIB5dWVXfLAvxeemTi3mveaX5S5gQRHE5A1Dde9KaxxiP0zYXa3P3YsNjgpLW52p17YwCnTlpsZZ 8+Q9zGIi97t+23EVoUBERA==; Original-Received: from [87.69.77.57] (port=2364 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 1msgUF-0006TL-9W; Thu, 02 Dec 2021 02:26:35 -0500 In-Reply-To: (message from Arthur Miller on Thu, 02 Dec 2021 00:08:37 +0100) 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:221258 Archived-At: > From: Arthur Miller > Date: Thu, 02 Dec 2021 00:08:37 +0100 > > My idea to per-use it is to simply run 'update-hooks' on clock beat, so any > application can register a hook that will be called on a "clock beat". While it > is maybe not so super-synchronized with system clock, it still gives impression > of clocks in Emacs be synchronized. Isn't that what timers are for? Why can't you use run-with-timer for what you want to do?