unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* call function every new day at 00:00?
@ 2019-09-07 10:57 Emanuel Berg via Users list for the GNU Emacs text editor
  2019-09-07 11:06 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2019-09-07 10:57 UTC (permalink / raw)
  To: help-gnu-emacs

How do you have Emacs invoke a "new-day"
function once every new day at 00:00?

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: call function every new day at 00:00?
  2019-09-07 10:57 call function every new day at 00:00? Emanuel Berg via Users list for the GNU Emacs text editor
@ 2019-09-07 11:06 ` Eli Zaretskii
  2019-09-07 11:18   ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2019-09-07 11:06 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Sat, 07 Sep 2019 12:57:48 +0200
> From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
> 
> How do you have Emacs invoke a "new-day"
> function once every new day at 00:00?

run-at-time comes to mind.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: call function every new day at 00:00?
  2019-09-07 11:06 ` Eli Zaretskii
@ 2019-09-07 11:18   ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 3+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2019-09-07 11:18 UTC (permalink / raw)
  To: help-gnu-emacs

Eli Zaretskii wrote:

>> How do you have Emacs invoke a "new-day"
>> function once every new day at 00:00?
>
> run-at-time comes to mind.

OK, let's see what happens:

(defvar *timer-test-var*)
(setq *timer-test-var* 0)
(defun timer-test ()
  (cl-incf *timer-test-var*) )
;; (run-at-time "00:00" nil #'timer-test)

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-07 11:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-07 10:57 call function every new day at 00:00? Emanuel Berg via Users list for the GNU Emacs text editor
2019-09-07 11:06 ` Eli Zaretskii
2019-09-07 11:18   ` Emanuel Berg via Users list for the GNU Emacs text editor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).