From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Minibuffer tray to display current time and date Date: Fri, 24 Apr 2015 17:41:21 +0300 Message-ID: <831tj9zizy.fsf@gnu.org> References: <87h9s7hd7a.fsf@debian.uxu> <87383qvoi4.fsf@debian.uxu> <874mo6bgzx.fsf@debian.uxu> <20150424141319.GA19093@tuxteam.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1429886593 16392 80.91.229.3 (24 Apr 2015 14:43:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Apr 2015 14:43:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 24 16:42:58 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yleoc-00007R-43 for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Apr 2015 16:42:50 +0200 Original-Received: from localhost ([::1]:45096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yleob-0003Ar-Kh for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Apr 2015 10:42:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YleoK-0003Al-NH for help-gnu-emacs@gnu.org; Fri, 24 Apr 2015 10:42:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YleoF-0007bb-OY for help-gnu-emacs@gnu.org; Fri, 24 Apr 2015 10:42:32 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:52176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YleoF-0007bT-GH for help-gnu-emacs@gnu.org; Fri, 24 Apr 2015 10:42:27 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NNB00600FBZBA00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Fri, 24 Apr 2015 17:41:30 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNB006LKFH6BI00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Fri, 24 Apr 2015 17:41:30 +0300 (IDT) In-reply-to: <20150424141319.GA19093@tuxteam.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103980 Archived-At: > Date: Fri, 24 Apr 2015 16:13:19 +0200 > From: > Cc: help-gnu-emacs@gnu.org > > > > Optimal would be to run now, and then (run-at-time > > > NEXT-TIME-MINUTE-CHANGES nil (lambda () (run-at-time > > > t 60 ... > > > > Are you thinking like this: "The granularity of the > > clock is 1 minute. So it should be updated once every > > minute, i.e. every 60 seconds." > > > > That sounds a bit risky to me, so I'd recommend setting > > it so that it will be set somewhere around three times > > per minute - and not set evenly so, but for example > > every 22 seconds: > > > > 0, 22, 44, 6 (66), 28, 50, ... > > This sounds a bit roundabout: why not run-at-time? Do you fear > that it gets out of sync? Instead of arguing, just look at how display-time-mode does it, this problem is already solved there.