[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cyclic block event in the diary
From: |
James Thomas |
Subject: |
Re: Cyclic block event in the diary |
Date: |
Sat, 09 Nov 2024 05:19:26 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Michael Heerdegen wrote:
> BP25 <bp25@riseup.net> writes:
>
>> I want to make an entry on my diary which is a cyclic block
>> event. Calendar mode provides commands to insert certain commonly used
>> sexp entries. Do you guys agree that there's no way I can combine the
>> commands for cyclic events and for block events?
>
> Depends on what you mean with "combine". You can combine as you wish
> using Lisp, e.g. with `and' or `or', but that will probably not give you
> the semantics you want.
>
>> Then, how would the Lisp expression look like for my cyclic block
>> event?
>
> So you want a block that repeats in a certain interval, right? I would
> have to think about how to get this in an easy way, but yes - I don't
> think it would be a trivial combination of predefined functions.
>
> How is the repetition interval defined - something like "every month",
> or more complicated?
Should be as simple as, say:
%%(and (diary-block 11 1 2024 11 15 2024) (diary-cyclic 2 11 7 2024))
IIUYC.
--