all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.