From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?G=C4=B3s_Hillenius?= Newsgroups: gmane.emacs.devel Subject: Re: diary-lib.el how about adding diary-schedule Date: Wed, 25 Aug 2021 09:39:37 +0200 Organization: Using Emacs' Org Mode Message-ID: <87pmu22csm.fsf@hillenius.net> References: <87tujkfng4.fsf@hillenius.net> <87tujj2bc5.fsf@gnus.org> <87a6la7x33.fsf@hillenius.net> <878s0qkiwp.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36860"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 25 09:40:58 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mInWs-0009LE-74 for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 09:40:58 +0200 Original-Received: from localhost ([::1]:43236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mInWr-0004CG-5G for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Aug 2021 03:40:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mInVr-0002Ez-Mb for emacs-devel@gnu.org; Wed, 25 Aug 2021 03:39:56 -0400 Original-Received: from hillenius.com ([2a01:4f8:200:546b::9e15:1]:53690 helo=hillenius.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mInVm-0008Fh-Rc for emacs-devel@gnu.org; Wed, 25 Aug 2021 03:39:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hillenius.net; s=hillenius; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xMKd9ajXyfnm8OzEuydSxTT8Rms0GYX10YKITg9ASPE=; b=pFEYeEKkwOBdWD6eKP+oi3/mK YS8G+giOdCjBAXZLipt6ZTy3x0LCxS8v+Lzlza15FMQCk7JbI7KnvJx9WUIScwSsXh4EDa2m2yr6A Rdb5WZHejsCYbbCqYswfUjY//aCZhtbig918ie7IjxzWIrPHk+uFxcsoSzDfOtYEctYIA=; Original-Received: from [2a01:4f8:200:546b:0:9e15:9e15:1000] (helo=inauditus) by hillenius.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mInVc-00057v-Vm; Wed, 25 Aug 2021 09:39:43 +0200 OpenPGP: id=340F F9A4 8F6C 18FD D032 0C33 ABA1 CB30 E997 A3AF X-Operating-System: Debian GNU/Linux Sid In-Reply-To: <878s0qkiwp.fsf@web.de> (Michael Heerdegen's message of "Tue, 24 Aug 2021 16:37:58 +0200") Received-SPF: pass client-ip=2a01:4f8:200:546b::9e15:1; envelope-from=gijs@hillenius.net; helo=hillenius.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272947 Archived-At: On 24 August 2021 16:37 Michael Heerdegen, wrote: >> The way I understand it (..) : diary-cyclic does not let me set an >> end-date, so a weekly entry is repeated "forever". >> >> End-date is in diary-block, but then the entry is added every day >> between begin and end date, instead of say, every Monday. >> >> Perhaps diary-block could be improved to allow setting 'every N days' >> like in diary-cyclic? > > Diary expressions are normal Elisp forms, so just use e.g.: > > %%(and (diary-cyclic 10 08 24 2021) (diary-block 08 24 2021 12 31 2021)) Ow! And thanks! this indeed does what I want: %%(and (diary-block 15 07 2020 30 06 2021) (diary-cyclic 7 15 07 2020)) 14:00-14:30 some weekly meeting I should have known. Back to my Lisp books!