[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: is the calendar broken?
From: |
Ed Reingold |
Subject: |
Re: is the calendar broken? |
Date: |
Fri, 24 Feb 2006 11:21:10 -0600 |
Wait a sec! There is no bug.
Look at the docs. This function defaults to the list of all
holidays which is NOT dynamic--it is computed on startup. Since the call is
made with no value for the optional parameter L (the list), the startup value
of calendar-holidays is assumed.
If you want holidays from specific lists, you need to give a value for L.
This function is intended primarily for interactive use, by the way.
> I did this:
>
> (progn
> (setq christian-holidays nil)
> (setq hebrew-holidays nil)
> (setq islamic-holidays nil)
> (setq solar-holidays nil)
> (setq bahai-holidays nil)
> (setq oriental-holidays nil)
> (setq all-christian-calendar-holidays nil)
> (setq all-hebrew-calendar-holidays nil)
> (setq all-islamic-calendar-holidays nil)
> (setq all-solar-calendar-holidays nil)
> (setq all-bahai-calendar-holidays nil)
> )
>
> And then this:
> (list-holidays 2006 2006)
>
> and I got this:
>
> Sunday, January 29, 2006: Chinese New Year (Bing-Xu)
> Tuesday, January 31, 2006: Islamic New Year 1427
> Wednesday, March 1, 2006: Ash Wednesday
> Monday, March 20, 2006: Vernal Equinox 6:25pm (UTC)
> Tuesday, March 21, 2006: Baha'i New Year (Naw-Ruz) 163
> Thursday, April 13, 2006: Passover
> Friday, April 14, 2006: Good Friday
> Sunday, April 16, 2006: Easter Sunday
> Friday, April 21, 2006: First Day of Ridvan
> Saturday, April 29, 2006: Ninth Day of Ridvan
> Tuesday, May 2, 2006: Twelfth Day of Ridvan
> Tuesday, May 23, 2006: Declaration of the Bab
> Monday, May 29, 2006: Ascension of Baha'u'llah
> Friday, June 2, 2006: Shavuot
> Wednesday, June 21, 2006: Summer Solstice 12:25pm (UTC)
> Sunday, July 9, 2006: Martyrdom of the Bab
> Saturday, September 23, 2006: Autumnal Equinox 4:03am (UTC)
> Saturday, September 23, 2006: Rosh HaShanah 5767
> Sunday, September 24, 2006: Ramadan Begins
> Monday, October 2, 2006: Yom Kippur
> Saturday, October 7, 2006: Sukkot
> Saturday, October 14, 2006: Shemini Atzeret
> Sunday, October 15, 2006: Simchat Torah
> Friday, October 20, 2006: Birth of the Bab
> Sunday, November 12, 2006: Birth of Baha'u'llah
> Saturday, December 16, 2006: Hanukkah
> Friday, December 22, 2006: Winter Solstice 12:21am (UTC)
> Monday, December 25, 2006: Christmas
>
> Which, much to my suprise still includes quite a lot of holidays. Have
> I got the wrong end of the stick with the way holidays work (it all
> seems remarkably complicated to me) or do other people agree that
> something looks broken?
>
>
> Nic
>
>
>
> _______________________________________________
> Emacs-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-devel
- Re: is the calendar broken?,
Ed Reingold <=