unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: James Thomas <jimjoe@gmx.net>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: BP25 <bp25@riseup.net>,  help-gnu-emacs@gnu.org
Subject: Re: Cyclic block event in the diary
Date: Sat, 09 Nov 2024 05:19:26 +0530	[thread overview]
Message-ID: <86zfm9s2ux.fsf@gmx.net> (raw)
In-Reply-To: <87bjyvp8p1.fsf@web.de> (Michael Heerdegen's message of "Mon, 04 Nov 2024 11:58:02 +0100")

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.

--



  reply	other threads:[~2024-11-08 23:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2024-11-09 16:35     ` Michael Heerdegen via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86zfm9s2ux.fsf@gmx.net \
    --to=jimjoe@gmx.net \
    --cc=bp25@riseup.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).