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: Sun, 22 Aug 2021 09:33:20 +0200 Organization: Using Emacs' Org Mode Message-ID: <87a6la7x33.fsf@hillenius.net> References: <87tujkfng4.fsf@hillenius.net> <87tujj2bc5.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36643"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 22 09:34:26 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 1mHhzt-0009GW-Qx for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Aug 2021 09:34:25 +0200 Original-Received: from localhost ([::1]:42690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHhzr-0001UO-SS for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Aug 2021 03:34:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHhzH-0000px-Qx for emacs-devel@gnu.org; Sun, 22 Aug 2021 03:33:47 -0400 Original-Received: from hillenius.com ([2a01:4f8:200:546b::9e15:1]:60992 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 1mHhzC-000678-SR for emacs-devel@gnu.org; Sun, 22 Aug 2021 03:33:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hillenius.net; s=hillenius; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:To:From:Sender: Reply-To:Cc: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=fRkQCkPmpZpdxnLuRAzrOQ7ByxawYpU4vPLEZH1+QFQ=; b=eUSyD50EDMpqf9HlZTGKVncaqe FlDHZUWa9ykDGAit/DFFHvKyhfx1waKnp+epCkqXQpgFKykkpcGdLyO0iF/asasqF588Raq69u1YF l0PPvOYymYzSWO6IBU/yBwGyu6TgFW8RA94e9vPftky/Qm9ZXWRwHqkSofzGnCdu/gKo=; 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 1mHhz1-00024A-3X for emacs-devel@gnu.org; Sun, 22 Aug 2021 09:33:36 +0200 OpenPGP: id=340F F9A4 8F6C 18FD D032 0C33 ABA1 CB30 E997 A3AF X-Operating-System: Debian GNU/Linux Sid In-Reply-To: <87tujj2bc5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 21 Aug 2021 15:09:46 +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:272824 Archived-At: On 21 August 2021 15:09 Lars Ingebrigtsen, wrote: >> On the emacs wiki=B9 I found a useful bit of code that allows adding an >> weekly appointment in the diary file between two dates. Something that I >> can't do with diary-block or diary-cyclic. >> >> The code on the wiki seems out of date, so I reworked it a tiny bit. > > [...] > >> %%(diary-schedule 15 7 2020 30 6 2021 3) 14:00 some weekly meeting > > [...] > >> Would it be useful to add this to diary-lib.el? >> >> 1) https://www.emacswiki.org/emacs/DiaryMode > > Seems useful to me -- perhaps it should be called > `diary-schedule-weekly'? > > But I don't use the diary, so I'm not sure... Hm... there's something > called `diary-cyclic'? With a cycle of 7, that's almost the same thing, > although you have to be more careful about starting on the wrong day... 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?=20 > Any Diary users here with an opinion?