aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-04-23 02:59:47 +0000
committerGlenn Morris2008-04-23 02:59:47 +0000
commit7717093cb56b59f41960bbc0c681ee466f27763e (patch)
treea00c3faad6e7972b57317081d7d6e124e7d4262d
parentb36917033ff7aa3f851cdfa3ad1949b25ab229c4 (diff)
downloademacs-7717093cb56b59f41960bbc0c681ee466f27763e.tar.gz
emacs-7717093cb56b59f41960bbc0c681ee466f27763e.zip
(calendar-chinese-all-holidays-flag): New.
(calendar-other-dates): Add absolute date.
-rw-r--r--lisp/calendar/calendar.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 351aabcb9e7..aa7846e4090 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -792,6 +792,12 @@ calendar."
792 :type 'boolean 792 :type 'boolean
793 :group 'holidays) 793 :group 'holidays)
794 794
795(defcustom calendar-chinese-all-holidays-flag nil
796 "If nil, show only the major holidays from the Chinese calendar."
797 :version "23.1"
798 :type 'boolean
799 :group 'holidays)
800
795;;; End of user options. 801;;; End of user options.
796 802
797(defconst calendar-buffer "*Calendar*" 803(defconst calendar-buffer "*Calendar*"
@@ -1937,6 +1943,7 @@ interpreted as BC; -1 being 1 BC, and so on."
1937 (calendar-extract-month date) (calendar-extract-year date))) 1943 (calendar-extract-month date) (calendar-extract-year date)))
1938 2))) 1944 2)))
1939 1945
1946;; FIXME can this be generalized for holiday-chinese?
1940(defun calendar-nongregorian-visible-p (month day toabs fromabs switch) 1947(defun calendar-nongregorian-visible-p (month day toabs fromabs switch)
1941 "Return non-nil if MONTH, DAY is visible in the calendar window. 1948 "Return non-nil if MONTH, DAY is visible in the calendar window.
1942MONTH and DAY are in some non-Gregorian calendar system. The 1949MONTH and DAY are in some non-Gregorian calendar system. The
@@ -2165,6 +2172,7 @@ DATE is (month day year). Calendars that do not apply are omitted."
2165 (delq nil 2172 (delq nil
2166 (list 2173 (list
2167 (calendar-day-of-year-string date) 2174 (calendar-day-of-year-string date)
2175 (format "Absolute date: %s" (calendar-absolute-from-gregorian date))
2168 (format "ISO date: %s" (calendar-iso-date-string date)) 2176 (format "ISO date: %s" (calendar-iso-date-string date))
2169 (format "Julian date: %s" 2177 (format "Julian date: %s"
2170 (calendar-julian-date-string date)) 2178 (calendar-julian-date-string date))