* Cyclic block event in the diary
@ 2024-10-31 21:46 BP25
2024-11-04 10:58 ` Michael Heerdegen
0 siblings, 1 reply; 4+ messages in thread
From: BP25 @ 2024-10-31 21:46 UTC (permalink / raw)
To: help-gnu-emacs
Hello!
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? Then, how would the
Lisp expression look like for my cyclic block event? Any help is very
much appreciated.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cyclic block event in the diary
2024-10-31 21:46 Cyclic block event in the diary BP25
@ 2024-11-04 10:58 ` Michael Heerdegen
2024-11-08 23:49 ` James Thomas
0 siblings, 1 reply; 4+ messages in thread
From: Michael Heerdegen @ 2024-11-04 10:58 UTC (permalink / raw)
To: BP25; +Cc: help-gnu-emacs
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?
Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cyclic block event in the diary
2024-11-04 10:58 ` Michael Heerdegen
@ 2024-11-08 23:49 ` James Thomas
2024-11-09 16:35 ` Michael Heerdegen via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 4+ messages in thread
From: James Thomas @ 2024-11-08 23:49 UTC (permalink / raw)
To: Michael Heerdegen; +Cc: BP25, help-gnu-emacs
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.
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cyclic block event in the diary
2024-11-08 23:49 ` James Thomas
@ 2024-11-09 16:35 ` Michael Heerdegen via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 4+ messages in thread
From: Michael Heerdegen via Users list for the GNU Emacs text editor @ 2024-11-09 16:35 UTC (permalink / raw)
To: help-gnu-emacs
James Thomas <jimjoe@gmx.net> writes:
> Should be as simple as, say:
>
> %%(and (diary-block 11 1 2024 11 15 2024) (diary-cyclic 2 11 7 2024))
If the OP wants to restrict a cyclic entry to a certain range, then yes.
I didn't understand what exactly was wished for. A cyclically repeating
block entry would be another interpretation of the question.
Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-11-09 16:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31 21:46 Cyclic block event in the diary BP25
2024-11-04 10:58 ` Michael Heerdegen
2024-11-08 23:49 ` James Thomas
2024-11-09 16:35 ` Michael Heerdegen via Users list for the GNU Emacs text editor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).