all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 11272@debbugs.gnu.org
Subject: bug#11272: 24.1.50; `holiday-sexp' not always sufficient
Date: Wed, 11 May 2022 02:25:14 +0200	[thread overview]
Message-ID: <87a6bozzit.fsf@web.de> (raw)
In-Reply-To: <87mtfpk3ny.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 10 May 2022 13:50:09 +0200")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> > I wonder if we could provide a function `holiday-list', so that it
> > would be possible to do this:
> >
> > (add-to-list 'calendar-holidays
> >  '(holidays-list '(holiday-sundays-after-trinitatis)))

> I don't use the calendar much myself, but if I understand the report
> correctly, what you're suggesting makes sense to me.  This was ten years
> ago, though, so perhaps you've chosen to do something else?

Now I'm using my own extension library for diary sexps, it also handles
holidays.

AFAIR, one problem (with holidays) I later faced had been that it was
not possible at all to use the calendar holiday definitions in diary
sexps.  You can mark and list holidays in the calendar, but it is
not possible to use a diary sexp for date definitions like "Every Monday
meet Peter unless it's a holiday".

So I wrote some glue code to make things like that possible, but it's
all a bit hackish because Calendar and Diary are written in a way that I
don't like, like Ediff, with lots of special variables and weird
references to global state.

So now I'm using only the basic mechanisms from Calendar and Diary, and
the stuff I need to hack is only my own code.  Not sure yet what I will
do with that code.  Touching the calendar and diary libs is nothing I
look forward to, to be honest.

Michael.





      reply	other threads:[~2022-05-11  0:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-18 17:28 bug#11272: 24.1.50; `holiday-sexp' not always sufficient Michael Heerdegen
2022-05-10 11:50 ` Lars Ingebrigtsen
2022-05-11  0:25   ` Michael Heerdegen [this message]

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

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

  git send-email \
    --in-reply-to=87a6bozzit.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=11272@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.