bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11272: 24.1.50; `holiday-sexp' not always sufficient


From: Michael Heerdegen
Subject: bug#11272: 24.1.50; `holiday-sexp' not always sufficient
Date: Wed, 11 May 2022 02:25:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]