%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/calendar/ |
Current File : //usr/local/share/emacs/27.2/lisp/calendar/holidays.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file contains utf-8 non-ASCII characters, ;;; and so cannot be loaded into Emacs 22 or earlier. (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (string-lessp emacs-version "23") (error "`%s' was compiled for Emacs 23 or later" #$)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305#\210\306\307\304\310\311\301\312\313\311\314& \210\315\316\317\320\321DD\322\323\324%\210\325\316\326\305#\210\315\327\317\320\330DD\331\332\333\323\324&\210\325\327\326\305#\210\315\334\317\320\335DD\336\323\324%\210\325\334\326\305#\210\315\337\317\320\340DD\341\323\324%\210\325\337\326\305#\210\315\342\317\320\343DD\344\323\324\332\333&\210\325\342\326\305#\210\315\345\317\320\346DD\347\323\324%\210\325\345\326\305#\210\315\350\317\320\351DD\352\323\324%\210\325\350\326\305#\210\315\353\317\320\354DD\355\323\324%\210\325\353\326\305#\210\315\356\317\320\357DD\360\323\324%\210\325\356\326\305#\210\315\361\317\320\362DD\363\323\324%\210\325\361\326\305#\207" [require calendar load "hol-loaddefs" nil t custom-declare-group holidays "Holidays support in calendar." :group :prefix "holidays-" local custom-declare-variable holiday-general-holidays funcall function #[0 "\300\301\302\"\207" [mapcar purecopy ((holiday-fixed 1 1 "New Year's Day") (holiday-float 1 1 3 "Martin Luther King Day") (holiday-fixed 2 2 "Groundhog Day") (holiday-fixed 2 14 "Valentine's Day") (holiday-float 2 1 3 "President's Day") (holiday-fixed 3 17 "St. Patrick's Day") (holiday-fixed 4 1 "April Fools' Day") (holiday-float 5 0 2 "Mother's Day") (holiday-float 5 1 -1 "Memorial Day") (holiday-fixed 6 14 "Flag Day") (holiday-float 6 0 3 "Father's Day") (holiday-fixed 7 4 "Independence Day") (holiday-float 9 1 1 "Labor Day") (holiday-float 10 1 2 "Columbus Day") (holiday-fixed 10 31 "Halloween") (holiday-fixed 11 11 "Veteran's Day") (holiday-float 11 4 4 "Thanksgiving"))] 3] "General holidays. Default value is for the United States.\nSee the documentation for `calendar-holidays' for details." :type sexp put risky-local-variable holiday-oriental-holidays #[0 "\300\301\302\"\207" [mapcar purecopy ((holiday-chinese-new-year) (if calendar-chinese-all-holidays-flag (append (holiday-chinese 1 15 "Lantern Festival") (holiday-chinese-qingming) (holiday-chinese 5 5 "Dragon Boat Festival") (holiday-chinese 7 7 "Double Seventh Festival") (holiday-chinese 8 15 "Mid-Autumn Festival") (holiday-chinese 9 9 "Double Ninth Festival") (holiday-chinese-winter-solstice))))] 3] "Oriental holidays.\nSee the documentation for `calendar-holidays' for details." :version "23.1" holiday-local-holidays #[0 "\300\207" [nil] 1] "Local holidays.\nSee the documentation for `calendar-holidays' for details." holiday-other-holidays #[0 "\300\207" [nil] 1] "User defined holidays.\nSee the documentation for `calendar-holidays' for details." holiday-hebrew-holidays #[0 "\300\301\302\"\207" [mapcar purecopy ((holiday-hebrew-passover) (holiday-hebrew-rosh-hashanah) (holiday-hebrew-hanukkah) (if calendar-hebrew-all-holidays-flag (append (holiday-hebrew-tisha-b-av) (holiday-hebrew-misc))))] 3] "Jewish holidays.\nSee the documentation for `calendar-holidays' for details." holiday-christian-holidays #[0 "\300\301\302\"\207" [mapcar purecopy ((holiday-easter-etc) (holiday-fixed 12 25 "Christmas") (if calendar-christian-all-holidays-flag (append (holiday-fixed 1 6 "Epiphany") (holiday-julian 12 25 "Christmas (Julian calendar)") (holiday-greek-orthodox-easter) (holiday-fixed 8 15 "Assumption") (holiday-advent 0 "Advent"))))] 3] "Christian holidays.\nSee the documentation for `calendar-holidays' for details." holiday-islamic-holidays #[0 "\300\301\302\"\207" [mapcar purecopy ((holiday-islamic-new-year) (holiday-islamic 9 1 "Ramadan Begins") (if calendar-islamic-all-holidays-flag (append (holiday-islamic 1 10 "Ashura") (holiday-islamic 3 12 "Mulad-al-Nabi") (holiday-islamic 7 26 "Shab-e-Mi'raj") (holiday-islamic 8 15 "Shab-e-Bara't") (holiday-islamic 9 27 "Shab-e Qadr") (holiday-islamic 10 1 "Id-al-Fitr") (holiday-islamic 12 10 "Id-al-Adha"))))] 3] "Islamic holidays.\nSee the documentation for `calendar-holidays' for details." holiday-bahai-holidays #[0 "\300\301\302\"\207" [mapcar purecopy ((holiday-bahai-new-year) (holiday-bahai-ridvan) (holiday-fixed 5 23 "Declaration of the Báb") (holiday-fixed 5 29 "Ascension of Bahá’u’lláh") (holiday-fixed 7 9 "Martyrdom of the Báb") (holiday-fixed 10 20 "Birth of the Báb") (holiday-fixed 11 12 "Birth of Bahá’u’lláh") (if calendar-bahai-all-holidays-flag (append (holiday-fixed 11 26 "Day of the Covenant") (holiday-fixed 11 28 "Ascension of `Abdu’l-Bahá"))))] 3] "Bahá’í holidays.\nSee the documentation for `calendar-holidays' for details." holiday-solar-holidays #[0 "\300\301\302\"\207" [mapcar purecopy ((solar-equinoxes-solstices) (holiday-sexp calendar-daylight-savings-starts (format "Daylight Saving Time Begins %s" (solar-time-string (/ calendar-daylight-savings-starts-time (float 60)) calendar-standard-time-zone-name))) (holiday-sexp calendar-daylight-savings-ends (format "Daylight Saving Time Ends %s" (solar-time-string (/ calendar-daylight-savings-ends-time (float 60)) calendar-daylight-time-zone-name))))] 3] "Sun-related holidays.\nSee the documentation for `calendar-holidays' for details." calendar-holidays #[0 "\306 \n\f & \207" [holiday-general-holidays holiday-local-holidays holiday-other-holidays holiday-christian-holidays holiday-hebrew-holidays holiday-islamic-holidays append holiday-bahai-holidays holiday-oriental-holidays holiday-solar-holidays] 10] "List of notable days for the command \\[holidays].\n\nAdditional holidays are easy to add to the list, just put them in the\nlist `holiday-other-holidays' in your init file. Similarly, by setting\nany of `holiday-general-holidays', `holiday-local-holidays',\n`holiday-christian-holidays', `holiday-hebrew-holidays',\n`holiday-islamic-holidays', `holiday-bahai-holidays',\n`holiday-oriental-holidays', or `holiday-solar-holidays' to nil in your\ninit file, you can eliminate unwanted categories of holidays.\n\nThe aforementioned variables control the holiday choices offered\nby the function `holiday-list' when it is called interactively.\n\nThey also initialize the default value of `calendar-holidays',\nwhich is the default list of holidays used by the function\n`holiday-list' in the non-interactive case. Note that these\nvariables have no effect on `calendar-holidays' after it has been\nset (e.g. after the calendar is loaded). In that case, customize\n`calendar-holidays' directly.\n\nThe intention is that (in the US) `holiday-local-holidays' be set in\nsite-init.el and `holiday-other-holidays' be set by the user.\n\nEntries on the list are expressions that return (possibly empty) lists of\nitems of the form ((month day year) string) of a holiday in the\nthree-month period centered around `displayed-month' of `displayed-year'.\nSeveral basic functions are provided for this purpose:\n\n (holiday-fixed MONTH DAY STRING) is a fixed date on the Gregorian calendar\n (holiday-float MONTH DAYNAME K STRING &optional DAY) is the Kth DAYNAME\n (0 for Sunday, etc.) after/before Gregorian\n MONTH DAY. K<0 means count back from the end\n of the month. Optional DAY defaults to 1 if\n K>0, and MONTH's last day otherwise.\n (holiday-hebrew MONTH DAY STRING) a fixed date on the Hebrew calendar\n (holiday-islamic MONTH DAY STRING) a fixed date on the Islamic calendar\n (holiday-bahai MONTH DAY STRING) a fixed date on the Bahá’í calendar\n (holiday-julian MONTH DAY STRING) a fixed date on the Julian calendar\n (holiday-sexp SEXP STRING) SEXP is a Gregorian-date-valued expression\n in the variable `year'; if it evaluates to\n a visible date, that's the holiday; if it\n evaluates to nil, there's no holiday. STRING\n is an expression in the variable `date'.\n\nFor example, to add Bastille Day, celebrated in France on July 14, add\n\n (holiday-fixed 7 14 \"Bastille Day\")\n\nto the list. To add Hurricane Supplication Day, celebrated in the Virgin\nIslands on the fourth Monday in July, add\n\n (holiday-float 7 1 4 \"Hurricane Supplication Day\")\n\nto the list (the last Monday would be specified with `-1' instead of `4').\nTo add the last day of Hanukkah to the list, use\n\n (holiday-hebrew 10 2 \"Last day of Hanukkah\")\n\nsince the Hebrew months are numbered with 1 starting from Nisan.\nTo add the Islamic feast celebrating Mohammed's birthday, use\n\n (holiday-islamic 3 12 \"Mohammed's Birthday\")\n\nsince the Islamic months are numbered from 1 starting with Muharram.\nTo add an entry for the Bahá’í festival of Ridvan, use\n\n (holiday-bahai 2 13 \"Festival of Ridvan\")\n\nsince the Bahá’í months are numbered from 1 starting with Bahá.\nTo add Thomas Jefferson's birthday, April 2, 1743 (Julian), use\n\n (holiday-julian 4 2 \"Jefferson's Birthday\")\n\nTo include a holiday conditionally, use the sexp form or a conditional. For\nexample, to include American presidential elections, which occur on the first\nTuesday after the first Monday in November of years divisible by 4, add\n\n (holiday-sexp\n \\='(if (zerop (% year 4))\n (calendar-gregorian-from-absolute\n (1+ (calendar-dayname-on-or-before\n 1 (+ 6 (calendar-absolute-from-gregorian\n (list 11 1 year)))))))\n \"US Presidential Election\")\n\nor\n\n (if (zerop (% displayed-year 4))\n (holiday-fixed 11\n (calendar-extract-day\n (calendar-gregorian-from-absolute\n (1+ (calendar-dayname-on-or-before\n 1 (+ 6 (calendar-absolute-from-gregorian\n (list 11 1 displayed-year)))))))\n \"US Presidential Election\"))\n\nto the list. To include the phases of the moon, add\n\n (lunar-phases)\n\nto the holiday list, where `lunar-phases' is an Emacs Lisp function that\nyou've written to return a (possibly empty) list of the relevant VISIBLE dates\nwith descriptive strings such as\n\n (((2 6 1989) \"New Moon\") ((2 12 1989) \"First Quarter Moon\") ... )."] 10) #@127 Form the list of holidays that occur on dates in the calendar window. The holidays are those in the list `calendar-holidays'. (defalias 'calendar-holiday-list #[0 "\303\211\304\211\203E \211@ \203 \305\306\305\")\2021 \3071$ \306\305\"0\2021 \310\311\312\313#\314#\210\303\262\211\262\203>