Re: Calendar hack: Displaying ISO weeks, update for emacs 22

2006-12-07 Thread Alf-Ivar Holm
[EMAIL PROTECTED] writes: Alf-Ivar Holm [EMAIL PROTECTED] writes: Could you give me _one_ function that would break? The displayed calendar is quite static, e.g. it does not support dynamic display of months when changing the width of the window (I could easily fit 5 months, included week

Re: Calendar hack: Displaying ISO weeks, update for emacs 22, the real update

2006-12-07 Thread Alf-Ivar Holm
[EMAIL PROTECTED] (Edward M. Reingold) writes: AH == Alf-Ivar Holm [EMAIL PROTECTED] writes: AH I should point out as this is titled a hack and I do not have have a AH test suite I will not guarantee that it works in all environments, BUT AH I have used it with extensive diary

Re: Calendar hack: Displaying ISO weeks, update for emacs 22, the real update

2006-12-07 Thread Edward M. Reingold
AH == Alf-Ivar Holm [EMAIL PROTECTED] writes: AH (defun local-holiday-easter-etc () List of dates related to Easter in AH Norway, as visible in calendar window. (if (and ( displayed-month AH 5)) nil;; Ash Wednesday, Good Friday, and Easter are not visible. This a good example of

Re: Calendar hack: Displaying ISO weeks, update for emacs 22, the real update

2006-12-07 Thread Richard Stallman
How do you know that the holidays are correct when the calendar has more than 3 months? Do you have a way to check, say, the dates of lunar phases, Easter, Chinese New Year, Yom Kippur, Islamic New Year, solstices/equinoxes? You will see SOME holidays (or diary entries) but

Re: Calendar hack: Displaying ISO weeks, update for emacs 22, the real update

2006-12-07 Thread Richard Stallman
The test (if ( displayed-month 5) checks if the center of the 3 month window is beyond May, in which case (as the comment from my code says!) Ash Wednesday, Good Friday, and Easter cannot be visibible because they occur in Feb/Mar/Apr. It sounds like we should