From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Alinovi Newsgroups: gmane.emacs.help Subject: diary-mail-entries Date: Mon, 22 Jul 2024 11:40:12 -0400 Message-ID: <87sew1ph9f.fsf@eddie.fios-router.home> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18455"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 22 17:40:45 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sVv9Z-0004d4-CK for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 22 Jul 2024 17:40:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVv9C-0004K3-0D; Mon, 22 Jul 2024 11:40:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVv9A-0004IO-G0 for help-gnu-emacs@gnu.org; Mon, 22 Jul 2024 11:40:20 -0400 Original-Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVv98-0002eU-AP for help-gnu-emacs@gnu.org; Mon, 22 Jul 2024 11:40:20 -0400 Original-Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4WSPcG6sPhz9vLK for ; Mon, 22 Jul 2024 15:40:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1721662815; bh=JqzB9SHV/LeBR9zyF3tVktsjIAAUJT9roqHCthvR5cM=; h=From:To:Subject:Date:From; b=k1yHrxiXF7NMthSdzw6d5QMa8M5Ef6tSDYFV8B2H8zwJduG9Xnz6PHRSM2BpO93+k fBZsdEa9ThnN56186vLBAYwovEs6y/mL6Hoi9McThCWn6mUIn1MCvG+0+ocOY6CjGM 43oCdp1nBqLYQ+IUF6GLC79+/9GvtMjF5YWQNoe0= X-Riseup-User-ID: D46D5915ABDF0C1FA0A44427A419C3F754512A4714F711E6408A92EBA57F3D2F Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4WSPcG3yp2zFtLF for ; Mon, 22 Jul 2024 15:40:14 +0000 (UTC) Received-SPF: pass client-ip=198.252.153.6; envelope-from=aalinovi@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147300 Archived-At: I have the following in ~/.emacs.d/init.el: (require 'midnight) (setq midnight-period 39600) ;; (eq (* 11 60 60) "12 hours") (midnight-delay-set 'midnight-delay 1800) (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. Obviously, my thinking is flawed or I wouldn't be here. So, what am I doing wrong and how do I correct it? Thanks