all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: diary-mail-entries
Date: Mon, 22 Jul 2024 20:33:51 +0200	[thread overview]
Message-ID: <878qxtff8w.fsf@web.de> (raw)
In-Reply-To: 87sew1ph9f.fsf@eddie.fios-router.home

Arthur Alinovi <aalinovi@riseup.net> writes:

> (setq midnight-period 39600) ;; (eq (* 11 60 60) "12 hours")

I don't think you want to set this variable: AFAIU this is the length of
a day - with other words, the delay between two timer invocations.

> (midnight-delay-set 'midnight-delay 1800)

Calling a setter function of an option will not necessarily set the
variable.  You want 

  (setopt midnight-delay ...)

> (add-hook 'midnight-hook 'diary-mail-entries)

> My thinking is that this sets "midnight" for 11:00am and runs the
> midnight-hook diary-mail-entries 30 minutes later.

This would be (* 11 60 60) for "...".

Michael.




  reply	other threads:[~2024-07-22 18:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-22 15:40 diary-mail-entries Arthur Alinovi
2024-07-22 18:33 ` Michael Heerdegen via Users list for the GNU Emacs text editor [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-10-14 13:42 diary-mail-entries aalinovi
2022-10-16 20:31 ` diary-mail-entries Thorsten Bonow
2022-10-17 11:21   ` diary-mail-entries aalinovi
2022-10-13 16:53 diary-mail-entries aalinovi
2022-10-13 17:31 ` diary-mail-entries Thorsten Bonow
2022-10-13 19:21 ` diary-mail-entries Emanuel Berg
2022-10-13 19:23 ` diary-mail-entries Emanuel Berg
2007-03-20 21:49 diary-mail-entries sven.bretfeld
2007-03-21  4:45 ` diary-mail-entries Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878qxtff8w.fsf@web.de \
    --to=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.