From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: Minibuffer tray to display current time and date Date: Fri, 24 Apr 2015 21:11:57 -0400 Organization: A noiseless patient Spider Message-ID: References: <87h9s7hd7a.fsf@debian.uxu> <87383qvoi4.fsf@debian.uxu> <874mo6bgzx.fsf@debian.uxu> <20150424141319.GA19093@tuxteam.de> <831tj9zizy.fsf@gnu.org> <87ioclo9p5.fsf@yale.edu> <83wq11xyiu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429924523 1836 80.91.229.3 (25 Apr 2015 01:15:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Apr 2015 01:15:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 25 03:15:22 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 1Ylogj-0002Hc-Uk for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Apr 2015 03:15:22 +0200 Original-Received: from localhost ([::1]:47028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ylogj-0001hn-3c for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Apr 2015 21:15:21 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Injection-Info: mx02.eternal-september.org; posting-host="ad871ce417d1fb2ea3c87e49e48c0ae1"; logging-data="6812"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Tq2ZvnP15DBfXoN/wyNdOPt6g5OGTlvo=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:S13xX3H/BtvdRy5y9U9fvdlDBdU= Original-Xref: usenet.stanford.edu gnu.emacs.help:211704 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:103986 Archived-At: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) writes: > Eli Zaretskii writes: > >>> From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) >>> Date: Fri, 24 Apr 2015 10:57:42 -0400 Eli Zaretskii writes: >>> > Instead of arguing, just look at how display-time-mode does >>> > it, this problem is already solved there. >>> It does it exactly as I had proposed at the beginning >>> (run-at-time t 60 ...) >> >> You are missing the call to timer-set-time, I think. > > Thanks... I see, it seems like every time that the display-timer > runs it updates its interval. That doesn't seem very efficient, > but there could be a good reason why they did it that way. How is that not efficient? That's exactly the way I did it about 30 years ago on an IBM mainframe. Works for anything you want running at a regular interval. First pop is 60 seconds. Odds are, it will pop at 61, or even 62 depending on system load, etc. So, the next wait should be 60, 59, or 58. -- Dan Espen