1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-05 08:53:45 +00:00
emacs/lisp/calendar/cal-hebrew.el

1210 lines
54 KiB
EmacsLisp
Raw Normal View History

;;; cal-hebrew.el --- calendar functions for the Hebrew calendar
1995-09-21 02:57:43 +00:00
;; Copyright (C) 1995, 1997, 2001-2011 Free Software Foundation, Inc.
1995-09-21 02:57:43 +00:00
1995-09-21 03:04:16 +00:00
;; Author: Nachum Dershowitz <nachum@cs.uiuc.edu>
;; Edward M. Reingold <reingold@cs.uiuc.edu>
2005-12-10 05:46:09 +00:00
;; Maintainer: Glenn Morris <rgm@gnu.org>
1995-09-21 02:57:43 +00:00
;; Keywords: calendar
;; Human-Keywords: Hebrew calendar, calendar, diary
;; Package: calendar
1995-09-21 02:57:43 +00:00
;; This file is part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it and/or modify
1995-09-21 02:57:43 +00:00
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
1995-09-21 02:57:43 +00:00
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
1995-09-21 02:57:43 +00:00
;;; Commentary:
;; See calendar.el.
1995-09-21 02:57:43 +00:00
;;; Code:
(require 'calendar)
1995-09-21 02:57:43 +00:00
(define-obsolete-variable-alias 'diary-sabbath-candles-minutes
'diary-hebrew-sabbath-candles-minutes "23.1")
(defcustom diary-hebrew-sabbath-candles-minutes 18
"Number of minutes before sunset for sabbath candle lighting.
Used by `diary-hebrew-sabbath-candles'."
:group 'diary
:type 'integer
:version "21.1")
;; End of user options.
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-leap-year-p (year)
"Non-nil if YEAR is a Hebrew calendar leap year."
1995-09-21 02:57:43 +00:00
(< (% (1+ (* 7 year)) 19) 7))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-last-month-of-year (year)
1995-09-21 02:57:43 +00:00
"The last month of the Hebrew calendar YEAR."
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(if (calendar-hebrew-leap-year-p year)
1995-09-21 02:57:43 +00:00
13
12))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-elapsed-days (year)
"Days to mean conjunction of Tishri of Hebrew YEAR.
Measured from Sunday before start of Hebrew calendar."
1995-09-21 02:57:43 +00:00
(let* ((months-elapsed
2008-03-08 21:34:30 +00:00
(+ (* 235 (/ (1- year) 19)) ; months in complete cycles so far
(* 12 (% (1- year) 19)) ; regular months in this cycle
(/ (1+ (* 7 (% (1- year) 19))) 19))) ; leap months this cycle
1995-09-21 02:57:43 +00:00
(parts-elapsed (+ 204 (* 793 (% months-elapsed 1080))))
(hours-elapsed (+ 5
(* 12 months-elapsed)
(* 793 (/ months-elapsed 1080))
(/ parts-elapsed 1080)))
2008-03-13 06:29:28 +00:00
(parts ; conjunction parts
1995-09-21 02:57:43 +00:00
(+ (* 1080 (% hours-elapsed 24)) (% parts-elapsed 1080)))
2008-03-13 06:29:28 +00:00
(day ; conjunction day
1995-09-21 02:57:43 +00:00
(+ 1 (* 29 months-elapsed) (/ hours-elapsed 24)))
(alternative-day
2008-03-08 21:34:30 +00:00
(if (or (>= parts 19440) ; if the new moon is at or after midday
2008-03-13 06:29:28 +00:00
(and (= (% day 7) 2) ; ...or is on a Tuesday...
2008-03-08 21:34:30 +00:00
(>= parts 9924) ; at 9 hours, 204 parts or later...
2008-03-13 06:29:28 +00:00
;; of a common year...
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(not (calendar-hebrew-leap-year-p year)))
2008-03-13 06:29:28 +00:00
(and (= (% day 7) 1) ; ...or is on a Monday...
2008-03-08 21:34:30 +00:00
(>= parts 16789) ; at 15 hours, 589 parts or later...
2008-03-13 06:29:28 +00:00
;; at the end of a leap year.
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-leap-year-p (1- year))))
2008-03-13 06:29:28 +00:00
;; Then postpone Rosh HaShanah one day.
1995-09-21 02:57:43 +00:00
(1+ day)
2008-03-13 06:29:28 +00:00
;; Else:
1995-09-21 02:57:43 +00:00
day)))
2008-03-08 21:34:30 +00:00
;; If Rosh HaShanah would occur on Sunday, Wednesday, or Friday
(if (memq (% alternative-day 7) (list 0 3 5))
2008-03-13 06:29:28 +00:00
;; Then postpone it one (more) day and return.
1995-09-21 02:57:43 +00:00
(1+ alternative-day)
2008-03-08 21:34:30 +00:00
;; Else return.
1995-09-21 02:57:43 +00:00
alternative-day)))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-days-in-year (year)
1995-09-21 02:57:43 +00:00
"Number of days in Hebrew YEAR."
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(- (calendar-hebrew-elapsed-days (1+ year))
(calendar-hebrew-elapsed-days year)))
1995-09-21 02:57:43 +00:00
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-long-heshvan-p (year)
"Non-nil if Heshvan is long in Hebrew YEAR."
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(= (% (calendar-hebrew-days-in-year year) 10) 5))
1995-09-21 02:57:43 +00:00
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-short-kislev-p (year)
"Non-nil if Kislev is short in Hebrew YEAR."
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(= (% (calendar-hebrew-days-in-year year) 10) 3))
1995-09-21 02:57:43 +00:00
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-last-day-of-month (month year)
"The last day of MONTH in YEAR."
(if (or (memq month (list 2 4 6 10 13))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(and (= month 12) (not (calendar-hebrew-leap-year-p year)))
(and (= month 8) (not (calendar-hebrew-long-heshvan-p year)))
(and (= month 9) (calendar-hebrew-short-kislev-p year)))
29
30))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-to-absolute (date)
1995-09-21 02:57:43 +00:00
"Absolute date of Hebrew DATE.
The absolute date is the number of days elapsed since the (imaginary)
Gregorian date Sunday, December 31, 1 BC."
2008-04-07 01:59:37 +00:00
(let ((month (calendar-extract-month date))
(day (calendar-extract-day date))
(year (calendar-extract-year date)))
2008-03-13 06:29:28 +00:00
(+ day ; days so far this month
(if (< month 7) ; before Tishri
;; Then add days in prior months this year before and after Nisan.
1995-09-21 02:57:43 +00:00
(+ (calendar-sum
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
m 7 (<= m (calendar-hebrew-last-month-of-year year))
(calendar-hebrew-last-day-of-month m year))
1995-09-21 02:57:43 +00:00
(calendar-sum
m 1 (< m month)
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-last-day-of-month m year)))
2008-03-13 06:29:28 +00:00
;; Else add days in prior months this year.
1995-09-21 02:57:43 +00:00
(calendar-sum
m 7 (< m month)
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-last-day-of-month m year)))
(calendar-hebrew-elapsed-days year) ; days in prior years
2008-03-13 06:29:28 +00:00
-1373429))) ; days elapsed before absolute date 1
1995-09-21 02:57:43 +00:00
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(define-obsolete-function-alias 'calendar-absolute-from-hebrew
'calendar-hebrew-to-absolute "23.1")
(defun calendar-hebrew-from-absolute (date)
"Compute the Hebrew date (month day year) corresponding to absolute DATE.
The absolute date is the number of days elapsed since the (imaginary)
Gregorian date Sunday, December 31, 1 BC."
(let* ((greg-date (calendar-gregorian-from-absolute date))
2008-04-07 01:59:37 +00:00
(year (+ 3760 (calendar-extract-year greg-date)))
(month (aref [9 10 11 12 1 2 3 4 7 7 7 8]
2008-04-07 01:59:37 +00:00
(1- (calendar-extract-month greg-date))))
(length (progn
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(while (>= date (calendar-hebrew-to-absolute
(list 7 1 (1+ year))))
(setq year (1+ year)))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-last-month-of-year year)))
day)
(while (> date
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-to-absolute
(list month
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-last-day-of-month month year)
year)))
(setq month (1+ (% month length))))
(setq day (1+
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(- date (calendar-hebrew-to-absolute (list month 1 year)))))
(list month day year)))
(defconst calendar-hebrew-month-name-array-common-year
1995-09-21 02:57:43 +00:00
["Nisan" "Iyar" "Sivan" "Tammuz" "Av" "Elul" "Tishri"
"Heshvan" "Kislev" "Teveth" "Shevat" "Adar"]
2008-03-13 06:29:28 +00:00
"Array of strings giving the names of the Hebrew months in a common year.")
1995-09-21 02:57:43 +00:00
(defconst calendar-hebrew-month-name-array-leap-year
1995-09-21 02:57:43 +00:00
["Nisan" "Iyar" "Sivan" "Tammuz" "Av" "Elul" "Tishri"
"Heshvan" "Kislev" "Teveth" "Shevat" "Adar I" "Adar II"]
2008-03-13 06:29:28 +00:00
"Array of strings giving the names of the Hebrew months in a leap year.")
1995-09-21 02:57:43 +00:00
;;;###cal-autoload
1995-09-21 02:57:43 +00:00
(defun calendar-hebrew-date-string (&optional date)
"String of Hebrew date before sunset of Gregorian DATE.
Defaults to today's date if DATE is not given.
Driven by the variable `calendar-date-display-form'."
(let* ((hebrew-date (calendar-hebrew-from-absolute
(calendar-absolute-from-gregorian
(or date (calendar-current-date)))))
(calendar-month-name-array
2008-04-07 01:59:37 +00:00
(if (calendar-hebrew-leap-year-p (calendar-extract-year hebrew-date))
1995-09-21 02:57:43 +00:00
calendar-hebrew-month-name-array-leap-year
calendar-hebrew-month-name-array-common-year)))
(calendar-date-string hebrew-date nil t)))
;;;###cal-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-print-date ()
1995-09-21 02:57:43 +00:00
"Show the Hebrew calendar equivalent of the date under the cursor."
(interactive)
(message "Hebrew date (until sunset): %s"
(calendar-hebrew-date-string (calendar-cursor-to-date t))))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(define-obsolete-function-alias 'calendar-print-hebrew-date
'calendar-hebrew-print-date "23.1")
(defun calendar-hebrew-yahrzeit (death-date year)
1995-09-21 02:57:43 +00:00
"Absolute date of the anniversary of Hebrew DEATH-DATE in Hebrew YEAR."
2008-04-07 01:59:37 +00:00
(let ((death-day (calendar-extract-day death-date))
(death-month (calendar-extract-month death-date))
(death-year (calendar-extract-year death-date)))
1995-09-21 02:57:43 +00:00
(cond
;; If it's Heshvan 30 it depends on the first anniversary; if
;; that was not Heshvan 30, use the day before Kislev 1.
((and (= death-month 8)
(= death-day 30)
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(not (calendar-hebrew-long-heshvan-p (1+ death-year))))
(1- (calendar-hebrew-to-absolute (list 9 1 year))))
2008-03-08 21:34:30 +00:00
;; If it's Kislev 30 it depends on the first anniversary; if that
;; was not Kislev 30, use the day before Teveth 1.
1995-09-21 02:57:43 +00:00
((and (= death-month 9)
(= death-day 30)
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-short-kislev-p (1+ death-year)))
(1- (calendar-hebrew-to-absolute (list 10 1 year))))
2008-03-08 21:34:30 +00:00
;; If it's Adar II, use the same day in last month of year (Adar
;; or Adar II).
1995-09-21 02:57:43 +00:00
((= death-month 13)
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-to-absolute
(list (calendar-hebrew-last-month-of-year year) death-day year)))
2008-03-08 21:34:30 +00:00
;; If it's the 30th in Adar I and year is not a leap year (so
;; Adar has only 29 days), use the last day in Shevat.
1995-09-21 02:57:43 +00:00
((and (= death-day 30)
(= death-month 12)
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(not (calendar-hebrew-leap-year-p year)))
(calendar-hebrew-to-absolute (list 11 30 year)))
1995-09-21 02:57:43 +00:00
;; In all other cases, use the normal anniversary of the date of death.
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(t (calendar-hebrew-to-absolute
1995-09-21 02:57:43 +00:00
(list death-month death-day year))))))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(define-obsolete-function-alias 'hebrew-calendar-yahrzeit
'calendar-hebrew-yahrzeit "23.1")
(defun calendar-hebrew-read-date ()
"Interactively read the arguments for a Hebrew date command.
Reads a year, month, and day."
(let* ((today (calendar-current-date))
(year (calendar-read
"Hebrew calendar year (>3760): "
(lambda (x) (> x 3760))
(number-to-string
2008-04-07 01:59:37 +00:00
(calendar-extract-year
(calendar-hebrew-from-absolute
(calendar-absolute-from-gregorian today))))))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(month-array (if (calendar-hebrew-leap-year-p year)
calendar-hebrew-month-name-array-leap-year
calendar-hebrew-month-name-array-common-year))
(completion-ignore-case t)
(month (cdr (assoc-string
(completing-read
"Hebrew calendar month name: "
(mapcar 'list (append month-array nil))
(if (= year 3761)
(lambda (x)
(let ((m (cdr
(assoc-string
(car x)
(calendar-make-alist month-array)
t))))
(< 0
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-to-absolute
(list m
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-last-day-of-month
m year)
year))))))
t)
(calendar-make-alist month-array 1) t)))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(last (calendar-hebrew-last-day-of-month month year))
(first (if (and (= year 3761) (= month 10))
18 1))
(day (calendar-read
(format "Hebrew calendar day (%d-%d): "
first last)
(lambda (x) (and (<= first x) (<= x last))))))
(list (list month day year))))
;;;###cal-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-goto-date (date &optional noecho)
"Move cursor to Hebrew DATE; echo Hebrew date unless NOECHO is non-nil."
(interactive (calendar-hebrew-read-date))
1995-09-21 02:57:43 +00:00
(calendar-goto-date (calendar-gregorian-from-absolute
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-to-absolute date)))
(or noecho (calendar-hebrew-print-date)))
(define-obsolete-function-alias 'calendar-goto-hebrew-date
'calendar-hebrew-goto-date "23.1")
1995-09-21 02:57:43 +00:00
2008-04-07 01:59:37 +00:00
(defvar displayed-month) ; from calendar-generate
(defun calendar-hebrew-date-is-visible-p (month day)
"Return non-nil if Hebrew MONTH DAY is visible in the calendar window.
Returns the corresponding Gregorian date."
2008-03-08 21:34:30 +00:00
;; This test is only to speed things up a bit; it works fine without it.
(if (memq displayed-month
2008-03-31 07:08:38 +00:00
;; What this is doing is equivalent to +1,2,3,4,5 modulo 12, ie:
;; (mapcar (lambda (n) (let ((x (mod n 12)))
;; (if (zerop x) 12
;; x)))
;; (number-sequence (1+ month) (+ 5 month)))
;; Ie it makes a list:
;; 2 3 4 5 6 when month = 1
;; 3 4 5 6 7 when month = 2
;; ...
;; 8 9 10 11 12 when month = 7
;; 9 10 11 12 1 when month = 8
;; ...
;; 12 1 2 3 4 when month = 11
;; 1 2 3 4 5 when month = 12
;; This implies that hebrew month N cannot occur outside
;; Gregorian months N:N+6 (the calendar shows
;; displayed-month +/- 1 at any time).
;; So to put it another way:
;; (calendar-interval month 1 displayed-month
;; (if (> month displayed-month) 2 1))
;; must be >= 1 and <= 5. This could be expanded to:
;; (if (> month displayed-month) (+ 12 (- displayed-month month))
;; (- displayed-month month)
2008-03-08 21:34:30 +00:00
(list
1995-09-21 02:57:43 +00:00
(if (< 11 month) (- month 11) (+ month 1))
(if (< 10 month) (- month 10) (+ month 2))
(if (< 9 month) (- month 9) (+ month 3))
(if (< 8 month) (- month 8) (+ month 4))
(if (< 7 month) (- month 7) (+ month 5))))
(calendar-nongregorian-visible-p
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
month day 'calendar-hebrew-to-absolute
'calendar-hebrew-from-absolute
;; Hebrew new year is start of month 7.
;; If hmonth >= 7, choose the higher year.
(lambda (m) (> m 6)))))
;;;###holiday-autoload
(defun holiday-hebrew (month day string)
"Holiday on MONTH, DAY (Hebrew) called STRING.
If MONTH, DAY (Hebrew) is visible, the value returned is corresponding
Gregorian date in the form of the list (((month day year) STRING)). Returns
nil if it is not visible in the current calendar window."
(let ((gdate (calendar-hebrew-date-is-visible-p month day)))
(if gdate (list (list gdate string)))))
1995-09-21 02:57:43 +00:00
;; h-r-h-e should be called from holidays code.
(declare-function holiday-filter-visible-calendar "holidays" (l))
(defvar displayed-year)
;;;###holiday-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun holiday-hebrew-rosh-hashanah (&optional all)
"List of dates related to Rosh Hashanah, as visible in calendar window.
2008-04-04 04:38:58 +00:00
Shows only the major holidays, unless `calendar-hebrew-all-holidays-flag'
or ALL is non-nil."
(when (memq displayed-month '(8 9 10 11))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(let ((abs-r-h (calendar-hebrew-to-absolute
(list 7 1 (+ displayed-year 3761)))))
(holiday-filter-visible-calendar
(append
(list
(list (calendar-gregorian-from-absolute abs-r-h)
(format "Rosh HaShanah %d" (+ 3761 displayed-year)))
(list (calendar-gregorian-from-absolute (+ abs-r-h 9))
"Yom Kippur")
(list (calendar-gregorian-from-absolute (+ abs-r-h 14))
"Sukkot")
(list (calendar-gregorian-from-absolute (+ abs-r-h 21))
"Shemini Atzeret")
(list (calendar-gregorian-from-absolute (+ abs-r-h 22))
"Simchat Torah"))
2008-04-04 04:38:58 +00:00
(when (or all calendar-hebrew-all-holidays-flag)
(list
(list (calendar-gregorian-from-absolute
(calendar-dayname-on-or-before 6 (- abs-r-h 4)))
"Selichot (night)")
(list (calendar-gregorian-from-absolute (1- abs-r-h))
"Erev Rosh HaShanah")
(list (calendar-gregorian-from-absolute (1+ abs-r-h))
"Rosh HaShanah (second day)")
(list (calendar-gregorian-from-absolute
(+ abs-r-h (if (= (% abs-r-h 7) 4) 3 2)))
"Tzom Gedaliah")
(list (calendar-gregorian-from-absolute
(calendar-dayname-on-or-before 6 (+ 7 abs-r-h)))
"Shabbat Shuvah")
(list (calendar-gregorian-from-absolute (+ abs-r-h 8))
"Erev Yom Kippur")
(list (calendar-gregorian-from-absolute (+ abs-r-h 13))
"Erev Sukkot")
(list (calendar-gregorian-from-absolute (+ abs-r-h 15))
"Sukkot (second day)")
(list (calendar-gregorian-from-absolute (+ abs-r-h 16))
"Hol Hamoed Sukkot (first day)")
(list (calendar-gregorian-from-absolute (+ abs-r-h 17))
"Hol Hamoed Sukkot (second day)")
(list (calendar-gregorian-from-absolute (+ abs-r-h 18))
"Hol Hamoed Sukkot (third day)")
(list (calendar-gregorian-from-absolute (+ abs-r-h 19))
"Hol Hamoed Sukkot (fourth day)")
(list (calendar-gregorian-from-absolute (+ abs-r-h 20))
"Hoshanah Rabbah"))))))))
1995-09-21 02:57:43 +00:00
;;;###holiday-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(define-obsolete-function-alias 'holiday-rosh-hashanah-etc
'holiday-hebrew-rosh-hashanah "23.1")
;;;###holiday-autoload
(defun holiday-hebrew-hanukkah (&optional all)
"List of dates related to Hanukkah, as visible in calendar window.
2008-04-04 04:38:58 +00:00
Shows only Hanukkah, unless `calendar-hebrew-all-holidays-flag' or ALL
is non-nil."
2008-03-08 21:34:30 +00:00
;; This test is only to speed things up a bit, it works fine without it.
(when (memq displayed-month '(10 11 12 1 2))
(let* ((m displayed-month)
(y displayed-year)
(h-y (progn
2008-04-07 01:59:37 +00:00
(calendar-increment-month m y 1)
(calendar-extract-year
(calendar-hebrew-from-absolute
(calendar-absolute-from-gregorian
(list m (calendar-last-day-of-month m y) y))))))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(abs-h (calendar-hebrew-to-absolute (list 9 25 h-y)))
(ord ["first" "second" "third" "fourth" "fifth" "sixth"
"seventh" "eighth"])
han)
(holiday-filter-visible-calendar
2008-04-04 04:38:58 +00:00
(if (or all calendar-hebrew-all-holidays-flag)
(append
(list
(list (calendar-gregorian-from-absolute (1- abs-h))
"Erev Hanukkah"))
(dotimes (i 8 (nreverse han))
(push (list
(calendar-gregorian-from-absolute (+ abs-h i))
(format "Hanukkah (%s day)" (aref ord i)))
han)))
(list (list (calendar-gregorian-from-absolute abs-h) "Hanukkah")))))))
1995-09-21 02:57:43 +00:00
;;;###holiday-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(define-obsolete-function-alias 'holiday-hanukkah
'holiday-hebrew-hanukkah "23.1")
;;;###holiday-autoload
(defun holiday-hebrew-passover (&optional all)
"List of dates related to Passover, as visible in calendar window.
2008-04-04 04:38:58 +00:00
Shows only the major holidays, unless `calendar-hebrew-all-holidays-flag'
or ALL is non-nil."
(when (< displayed-month 8)
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(let ((abs-p (calendar-hebrew-to-absolute
(list 1 15 (+ displayed-year 3760)))))
(holiday-filter-visible-calendar
;; The first two are out of order when the others are added.
(append
(list
(list (calendar-gregorian-from-absolute abs-p) "Passover")
(list (calendar-gregorian-from-absolute (+ abs-p 50))
"Shavuot"))
2008-04-04 04:38:58 +00:00
(when (or all calendar-hebrew-all-holidays-flag)
(let ((wday (% abs-p 7)))
(list
(list (calendar-gregorian-from-absolute
(calendar-dayname-on-or-before 6 (- abs-p 43)))
"Shabbat Shekalim")
(list (calendar-gregorian-from-absolute
(calendar-dayname-on-or-before 6 (- abs-p 30)))
"Shabbat Zachor")
(list (calendar-gregorian-from-absolute
(- abs-p (if (= wday 2) 33 31)))
"Fast of Esther")
(list (calendar-gregorian-from-absolute (- abs-p 31))
"Erev Purim")
(list (calendar-gregorian-from-absolute (- abs-p 30))
"Purim")
(list (calendar-gregorian-from-absolute
(- abs-p (if (zerop wday) 28 29)))
"Shushan Purim")
(list (calendar-gregorian-from-absolute
(- (calendar-dayname-on-or-before 6 (- abs-p 14)) 7))
"Shabbat Parah")
(list (calendar-gregorian-from-absolute
(calendar-dayname-on-or-before 6 (- abs-p 14)))
"Shabbat HaHodesh")
(list (calendar-gregorian-from-absolute
(calendar-dayname-on-or-before 6 (1- abs-p)))
"Shabbat HaGadol")
(list (calendar-gregorian-from-absolute (1- abs-p))
"Erev Passover")
(list (calendar-gregorian-from-absolute (1+ abs-p))
"Passover (second day)")
(list (calendar-gregorian-from-absolute (+ abs-p 2))
"Hol Hamoed Passover (first day)")
(list (calendar-gregorian-from-absolute (+ abs-p 3))
"Hol Hamoed Passover (second day)")
(list (calendar-gregorian-from-absolute (+ abs-p 4))
"Hol Hamoed Passover (third day)")
(list (calendar-gregorian-from-absolute (+ abs-p 5))
"Hol Hamoed Passover (fourth day)")
(list (calendar-gregorian-from-absolute (+ abs-p 6))
"Passover (seventh day)")
(list (calendar-gregorian-from-absolute (+ abs-p 7))
"Passover (eighth day)")
(list (calendar-gregorian-from-absolute
(+ abs-p (if (zerop (% (+ abs-p 12) 7))
13
12)))
"Yom HaShoah")
(list (calendar-gregorian-from-absolute
(+ abs-p
;; If falls on Sat or Fri, moves to preceding Thurs.
;; If falls on Mon, moves to Tues (since 2004).
(cond ((zerop wday) 18) ; Sat
((= wday 6) 19) ; Fri
((= wday 2) 21) ; Mon
(t 20))))
"Yom HaAtzma'ut")
(list (calendar-gregorian-from-absolute (+ abs-p 33))
"Lag BaOmer")
(list (calendar-gregorian-from-absolute (+ abs-p 43))
"Yom Yerushalaim")
(list (calendar-gregorian-from-absolute (+ abs-p 49))
"Erev Shavuot")
(list (calendar-gregorian-from-absolute (+ abs-p 51))
"Shavuot (second day)")))))))))
1995-09-21 02:57:43 +00:00
;;;###holiday-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(define-obsolete-function-alias 'holiday-passover-etc
'holiday-hebrew-passover "23.1")
;;;###holiday-autoload
(defun holiday-hebrew-tisha-b-av ()
1995-09-21 02:57:43 +00:00
"List of dates around Tisha B'Av, as visible in calendar window."
(when (memq displayed-month '(5 6 7 8 9))
(let* ((abs-t-a (calendar-hebrew-to-absolute
(list 5 9 (+ displayed-year 3760))))
(wday (% abs-t-a 7)))
(holiday-filter-visible-calendar
2003-02-04 13:24:35 +00:00
(list
1995-09-21 02:57:43 +00:00
(list (calendar-gregorian-from-absolute
(- abs-t-a (if (= wday 6) 20 21)))
1995-09-21 02:57:43 +00:00
"Tzom Tammuz")
(list (calendar-gregorian-from-absolute
(calendar-dayname-on-or-before 6 abs-t-a))
"Shabbat Hazon")
(list (calendar-gregorian-from-absolute
(if (= wday 6) (1+ abs-t-a) abs-t-a))
1995-09-21 02:57:43 +00:00
"Tisha B'Av")
(list (calendar-gregorian-from-absolute
(calendar-dayname-on-or-before 6 (+ abs-t-a 7)))
"Shabbat Nahamu"))))))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
;;;###holiday-autoload
(define-obsolete-function-alias 'holiday-tisha-b-av-etc
'holiday-hebrew-tisha-b-av "23.1")
(autoload 'holiday-julian "cal-julian")
;;;###holiday-autoload
(defun holiday-hebrew-misc ()
"Miscellaneous Hebrew holidays, if visible in calendar window.
Includes: Tal Umatar, Tzom Teveth, Tu B'Shevat, Shabbat Shirah, and
Kiddush HaHamah."
(let ((m displayed-month)
(y displayed-year)
year h-year)
(append
(holiday-julian
11
(progn
2008-04-07 01:59:37 +00:00
(calendar-increment-month m y -1)
(setq year (calendar-extract-year
(calendar-julian-from-absolute
(calendar-absolute-from-gregorian (list m 1 y)))))
(if (zerop (% (1+ year) 4))
22
21)) "\"Tal Umatar\" (evening)")
(holiday-hebrew
10
(progn
2008-04-07 01:59:37 +00:00
(setq h-year (calendar-extract-year
(calendar-hebrew-from-absolute
(calendar-absolute-from-gregorian
(list displayed-month 28 displayed-year)))))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(if (= 6 (% (calendar-hebrew-to-absolute (list 10 10 h-year))
7))
11 10))
"Tzom Teveth")
(holiday-hebrew 11 15 "Tu B'Shevat")
(holiday-hebrew
11
(progn
(setq m displayed-month
y displayed-year
h-year (progn
2008-04-07 01:59:37 +00:00
(calendar-increment-month m y 1)
(calendar-extract-year
(calendar-hebrew-from-absolute
(calendar-absolute-from-gregorian
(list m (calendar-last-day-of-month m y) y))))))
(calendar-extract-day
(calendar-hebrew-from-absolute
(calendar-dayname-on-or-before
6 (calendar-hebrew-to-absolute
(list 11
(if (= 6
(% (calendar-hebrew-to-absolute
(list 7 1 h-year))
7))
17 16) h-year))))))
"Shabbat Shirah")
(and (progn
(setq m displayed-month
y displayed-year
year (progn
2008-04-07 01:59:37 +00:00
(calendar-increment-month m y -1)
(calendar-extract-year
(calendar-julian-from-absolute
(calendar-absolute-from-gregorian (list m 1 y))))))
(= 21 (% year 28)))
(holiday-julian 3 26 "Kiddush HaHamah")))))
(autoload 'diary-list-entries-1 "diary-lib")
;;;###diary-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun diary-hebrew-list-entries ()
1995-09-21 02:57:43 +00:00
"Add any Hebrew date entries from the diary file to `diary-entries-list'.
Hebrew date diary entries must be prefaced by `diary-hebrew-entry-symbol'
\(normally an `H'). The same diary date forms govern the style
of the Hebrew calendar entries, except that the Hebrew month
2008-03-27 02:48:08 +00:00
names cannot be abbreviated. The Hebrew months are numbered
from 1 to 13 with Nisan being 1, 12 being Adar I and 13 being
Adar II; you must use `Adar I' if you want Adar of a common
Hebrew year. If a Hebrew date diary entry begins with
`diary-nonmarking-symbol', the entry will appear in the diary
listing, but will not be marked in the calendar. This function
2008-04-06 20:54:25 +00:00
is provided for use with `diary-nongregorian-listing-hook'."
(diary-list-entries-1 calendar-hebrew-month-name-array-leap-year
diary-hebrew-entry-symbol
'calendar-hebrew-from-absolute))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
;;;###diary-autoload
(define-obsolete-function-alias 'list-hebrew-diary-entries
'diary-hebrew-list-entries "23.1")
1995-09-21 02:57:43 +00:00
(autoload 'calendar-mark-complex "diary-lib")
;;;###diary-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-mark-date-pattern (month day year &optional color)
"Mark dates in calendar window that conform to Hebrew date MONTH/DAY/YEAR.
A value of 0 in any position is a wildcard. Optional argument COLOR is
2008-04-07 01:59:37 +00:00
passed to `calendar-mark-visible-date' as MARK."
;; FIXME not the same as the Bahai and Islamic cases, so can't use
;; calendar-mark-1.
* url-util.el (url-insert-entities-in-string): * url-nfs.el (url-nfs-unescape): * url-ldap.el (url-ldap): * url-imap.el (url-imap): * url-cid.el (url-cid-gnus, url-cid): Use with-current-buffer. * erc.el (erc-display-line-1, erc-process-away): * erc-truncate.el (erc-truncate-buffer-to-size): Use with-current-buffer. * term/ns-win.el (ns-scroll-bar-move, ns-face-at-pos): * play/mpuz.el (mpuz-create-buffer): * play/landmark.el (lm-prompt-for-move, lm-print-wts, lm-print-smell) (lm-print-y,s,noise, lm-print-w0, lm-init): * play/gomoku.el (gomoku-prompt-for-move): * play/fortune.el (fortune-in-buffer): * play/dissociate.el (dissociated-press): * play/decipher.el (decipher-adjacency-list, decipher-display-regexp) (decipher-analyze-buffer, decipher-stats-buffer,decipher-stats-buffer): * mail/supercite.el (sc-eref-show): * mail/smtpmail.el (smtpmail-send-it): * mail/rmailsum.el (rmail-summary-next-labeled-message) (rmail-summary-previous-labeled-message, rmail-summary-wipe) (rmail-summary-undelete-many, rmail-summary-rmail-update) (rmail-summary-goto-msg, rmail-summary-expunge) (rmail-summary-get-new-mail, rmail-summary-search-backward) (rmail-summary-add-label, rmail-summary-output-menu) (rmail-summary-output-body): * mail/rfc822.el (rfc822-addresses): * mail/reporter.el (reporter-dump-variable, reporter-dump-state): * mail/mailpost.el (post-mail-send-it): * mail/hashcash.el (hashcash-generate-payment): * mail/feedmail.el (feedmail-run-the-queue) (feedmail-queue-send-edit-prompt-help-first) (feedmail-send-it-immediately, feedmail-give-it-to-buffer-eater) (feedmail-deduce-address-list): * eshell/esh-ext.el (eshell-remote-command): * eshell/em-unix.el (eshell-occur-mode-mouse-goto): * emulation/viper-util.el (viper-glob-unix-files, viper-save-setting) (viper-wildcard-to-regexp, viper-glob-mswindows-files) (viper-save-string-in-file, viper-valid-marker): * emulation/viper-keym.el (viper-toggle-key): * emulation/viper-ex.el (ex-expand-filsyms, viper-get-ex-file) (ex-edit, ex-global, ex-mark, ex-next-related-buffer, ex-quit) (ex-get-inline-cmd-args, ex-tag, ex-command, ex-compile): * emulation/viper-cmd.el (viper-exec-form-in-vi) (viper-exec-form-in-emacs, viper-brac-function): * emulation/viper.el (viper-delocalize-var): * emulation/vip.el (vip-mode, vip-get-ex-token, vip-ex, vip-get-ex-pat) (vip-get-ex-command, vip-get-ex-opt-gc, vip-get-ex-buffer) (vip-get-ex-count, vip-get-ex-file, ex-edit, ex-global, ex-mark) (ex-map, ex-unmap, ex-quit, ex-read, ex-tag, ex-command): * emulation/vi.el (vi-switch-mode, vi-ex-cmd): * emulation/edt.el (edt-electric-helpify): * emulation/cua-rect.el (cua--rectangle-aux-replace): * emulation/cua-gmrk.el (cua--insert-at-global-mark) (cua--delete-at-global-mark, cua--copy-rectangle-to-global-mark) (cua-indent-to-global-mark-column): * calendar/diary-lib.el (calendar-mark-1): * calendar/cal-hebrew.el (calendar-hebrew-mark-date-pattern): Use with-current-buffer. * emulation/viper.el (viper-delocalize-var): Use dolist.
2009-11-03 02:04:29 +00:00
(with-current-buffer calendar-buffer
(if (and (not (zerop month)) (not (zerop day)))
(if (not (zerop year))
;; Fully specified Hebrew date.
(let ((date (calendar-gregorian-from-absolute
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-to-absolute
(list month day year)))))
(if (calendar-date-is-visible-p date)
2008-04-07 01:59:37 +00:00
(calendar-mark-visible-date date color)))
;; Month and day in any year.
(let ((gdate (calendar-hebrew-date-is-visible-p month day)))
2008-04-07 01:59:37 +00:00
(if gdate (calendar-mark-visible-date gdate color))))
(calendar-mark-complex month day year
'calendar-hebrew-from-absolute color))))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
;;;###diary-autoload
(define-obsolete-function-alias 'mark-hebrew-calendar-date-pattern
'calendar-hebrew-mark-date-pattern "23.1")
(autoload 'diary-mark-entries-1 "diary-lib")
;;;###diary-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun diary-hebrew-mark-entries ()
1995-09-21 02:57:43 +00:00
"Mark days in the calendar window that have Hebrew date diary entries.
Marks each entry in `diary-file' (or included files) visible in the calendar
window. See `list-hebrew-diary-entries' for more information."
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(diary-mark-entries-1 'calendar-hebrew-mark-date-pattern
calendar-hebrew-month-name-array-leap-year
diary-hebrew-entry-symbol
'calendar-hebrew-from-absolute))
1995-09-21 02:57:43 +00:00
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
;;;###diary-autoload
(define-obsolete-function-alias 'mark-hebrew-diary-entries
'diary-hebrew-mark-entries "23.1")
(autoload 'diary-insert-entry-1 "diary-lib")
;;;###cal-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun diary-hebrew-insert-entry (arg)
"Insert a diary entry for the Hebrew date at point.
Prefix argument ARG makes the entry nonmarking."
1995-09-21 02:57:43 +00:00
(interactive "P")
(diary-insert-entry-1 nil arg calendar-hebrew-month-name-array-leap-year
diary-hebrew-entry-symbol
'calendar-hebrew-from-absolute))
1995-09-21 02:57:43 +00:00
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
;;;###diary-autoload
(define-obsolete-function-alias 'insert-hebrew-diary-entry
'diary-hebrew-insert-entry "23.1")
;;;###cal-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun diary-hebrew-insert-monthly-entry (arg)
1995-09-21 02:57:43 +00:00
"Insert a monthly diary entry.
For the day of the Hebrew month corresponding to the date indicated by point.
Prefix argument ARG makes the entry nonmarking."
1995-09-21 02:57:43 +00:00
(interactive "P")
(diary-insert-entry-1 'monthly arg calendar-hebrew-month-name-array-leap-year
diary-hebrew-entry-symbol
'calendar-hebrew-from-absolute))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
;;;###diary-autoload
(define-obsolete-function-alias 'insert-monthly-hebrew-diary-entry
'diary-hebrew-insert-monthly-entry "23.1")
1995-09-21 02:57:43 +00:00
;;;###cal-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun diary-hebrew-insert-yearly-entry (arg)
1995-09-21 02:57:43 +00:00
"Insert an annual diary entry.
For the day of the Hebrew year corresponding to the date indicated by point.
Prefix argument ARG makes the entry nonmarking."
1995-09-21 02:57:43 +00:00
(interactive "P")
(diary-insert-entry-1 'yearly arg calendar-hebrew-month-name-array-leap-year
diary-hebrew-entry-symbol
'calendar-hebrew-from-absolute))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
;;;###diary-autoload
(define-obsolete-function-alias 'insert-yearly-hebrew-diary-entry
'diary-hebrew-insert-yearly-entry "23.1")
1995-09-21 02:57:43 +00:00
;;;###autoload
(defun calendar-hebrew-list-yahrzeits (death-date start-year end-year)
1995-09-21 02:57:43 +00:00
"List Yahrzeit dates for *Gregorian* DEATH-DATE from START-YEAR to END-YEAR.
When called interactively from the calendar window, the date of death is taken
from the cursor position."
(interactive
(let* ((death-date
(if (equal (current-buffer) (get-buffer calendar-buffer))
(calendar-cursor-to-date)
(let* ((today (calendar-current-date))
(year (calendar-read
"Year of death (>0): "
2008-03-08 03:41:34 +00:00
(lambda (x) (> x 0))
(number-to-string (calendar-extract-year today))))
1995-09-21 02:57:43 +00:00
(month-array calendar-month-name-array)
(completion-ignore-case t)
(month (cdr (assoc-string
(completing-read
"Month of death (name): "
(mapcar 'list (append month-array nil))
nil t)
(calendar-make-alist month-array 1) t)))
1995-09-21 02:57:43 +00:00
(last (calendar-last-day-of-month month year))
(day (calendar-read
(format "Day of death (1-%d): " last)
2008-03-08 03:41:34 +00:00
(lambda (x) (and (< 0 x) (<= x last))))))
1995-09-21 02:57:43 +00:00
(list month day year))))
2008-04-07 01:59:37 +00:00
(death-year (calendar-extract-year death-date))
1995-09-21 02:57:43 +00:00
(start-year (calendar-read
(format "Starting year of Yahrzeit table (>%d): "
death-year)
2008-03-08 03:41:34 +00:00
(lambda (x) (> x death-year))
(number-to-string (1+ death-year))))
1995-09-21 02:57:43 +00:00
(end-year (calendar-read
(format "Ending year of Yahrzeit table (>=%d): "
start-year)
2008-03-13 06:29:28 +00:00
(lambda (x) (>= x start-year)))))
(list death-date start-year end-year)))
(message "Computing Yahrzeits...")
(let* ((h-date (calendar-hebrew-from-absolute
1995-09-21 02:57:43 +00:00
(calendar-absolute-from-gregorian death-date)))
2008-04-07 01:59:37 +00:00
(h-year (calendar-extract-year h-date))
(i (1- start-year)))
2008-04-07 01:59:37 +00:00
(calendar-in-read-only-buffer calendar-hebrew-yahrzeit-buffer
(calendar-set-mode-line
(format "Yahrzeit dates for %s = %s"
(calendar-date-string death-date)
(let ((calendar-month-name-array
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(if (calendar-hebrew-leap-year-p h-year)
calendar-hebrew-month-name-array-leap-year
calendar-hebrew-month-name-array-common-year)))
(calendar-date-string h-date nil t))))
(while (<= (setq i (1+ i)) end-year)
(insert
(calendar-date-string
(calendar-gregorian-from-absolute
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-yahrzeit
h-date
2008-04-07 01:59:37 +00:00
(calendar-extract-year
(calendar-hebrew-from-absolute
(calendar-absolute-from-gregorian (list 1 1 i))))))) "\n"))))
(message "Computing Yahrzeits...done"))
1995-09-21 02:57:43 +00:00
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
;;;###autoload
(define-obsolete-function-alias 'list-yahrzeit-dates
'calendar-hebrew-list-yahrzeits "23.1")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-birthday (date year)
"Absolute date of the anniversary of Hebrew birth DATE, in Hebrew YEAR."
(let ((b-day (calendar-extract-day date))
(b-month (calendar-extract-month date))
(b-year (calendar-extract-year date)))
;; If it's Adar in a normal Hebrew year or Adar II in a Hebrew leap year...
(if (= b-month (calendar-hebrew-last-month-of-year b-year))
;; ...then use the same day in last month of Hebrew year.
(calendar-hebrew-to-absolute
(list (calendar-hebrew-last-month-of-year year) b-day year))
;; Else use the normal anniversary of the birth date,
;; or the corresponding day in years without that date.
(+ (calendar-hebrew-to-absolute (list b-month 1 year)) b-day -1))))
(defvar date)
2008-04-06 20:54:25 +00:00
;; To be called from diary-list-sexp-entries, where DATE is bound.
;;;###diary-autoload
1995-09-21 02:57:43 +00:00
(defun diary-hebrew-date ()
"Hebrew calendar equivalent of date diary entry."
(format "Hebrew date (until sunset): %s" (calendar-hebrew-date-string date)))
(defvar entry)
(declare-function diary-ordinal-suffix "diary-lib" (n))
;;;###diary-autoload
(defun diary-hebrew-birthday (month day year &optional after-sunset)
"Hebrew birthday diary entry.
Entry applies if date is birthdate (MONTH DAY YEAR), or the day before.
The order of the input parameters changes according to
`calendar-date-style' (e.g. to DAY MONTH YEAR in the European style).
Assumes the associated diary entry is the name of the person.
Although the date of birth is specified by the *civil* calendar,
this function determines the proper Hebrew calendar birthday.
If the optional argument AFTER-SUNSET is non-nil, this means the
birth occurred after local sunset on the given civil date.
In this case, the following civil date corresponds to the Hebrew birthday."
(let* ((h-date (calendar-hebrew-from-absolute
(+ (calendar-absolute-from-gregorian
(diary-make-date month day year))
(if after-sunset 1 0))))
(h-year (calendar-extract-year h-date)) ; birth-day
(d (calendar-absolute-from-gregorian date)) ; today
(h-yr (calendar-extract-year (calendar-hebrew-from-absolute d)))
(age (- h-yr h-year)) ; current H year - birth H-year
(b-date (calendar-hebrew-birthday h-date h-yr)))
(and (> age 0) (memq b-date (list d (1+ d)))
(format "%s's %d%s Hebrew birthday%s" entry age
(diary-ordinal-suffix age)
(if (= b-date d) "" " (evening)")))))
;;;###diary-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun diary-hebrew-omer (&optional mark)
1995-09-21 02:57:43 +00:00
"Omer count diary entry.
Entry applies if date is within 50 days after Passover.
2003-02-04 13:24:35 +00:00
An optional parameter MARK specifies a face or single-character string to
use when highlighting the day in the calendar."
1995-09-21 02:57:43 +00:00
(let* ((passover
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-to-absolute
2008-04-07 01:59:37 +00:00
(list 1 15 (+ (calendar-extract-year date) 3760))))
1995-09-21 02:57:43 +00:00
(omer (- (calendar-absolute-from-gregorian date) passover))
(week (/ omer 7))
(day (% omer 7)))
(if (and (> omer 0) (< omer 50))
2003-02-04 13:24:35 +00:00
(cons mark
2008-03-13 06:29:28 +00:00
(format "Day %d%s of the omer (until sunset)"
omer
(if (zerop week)
""
(format ", that is, %d week%s%s"
week
(if (= week 1) "" "s")
(if (zerop day)
""
(format " and %d day%s"
day (if (= day 1) "" "s"))))))))))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
;;;###diary-autoload
(define-obsolete-function-alias 'diary-omer 'diary-hebrew-omer "23.1")
1995-09-21 02:57:43 +00:00
(autoload 'diary-make-date "diary-lib")
(declare-function diary-ordinal-suffix "diary-lib" (n))
;;;###diary-autoload
(defun diary-hebrew-yahrzeit (death-month death-day death-year
&optional mark after-sunset)
"Yahrzeit diary entry--entry applies if date is Yahrzeit or the day before.
Parameters are DEATH-MONTH, DEATH-DAY, DEATH-YEAR; the diary
entry is assumed to be the name of the person. Although the date
of death is specified by the civil calendar, the proper Hebrew
calendar Yahrzeit is determined.
If the death occurred after local sunset on the given civil date,
the following civil date corresponds to the Hebrew date of
death--set the optional parameter AFTER-SUNSET non-nil in this case.
The order of the input parameters changes according to `calendar-date-style'
\(e.g. to DEATH-DAY, DEATH-MONTH, DEATH-YEAR in the European style).
2003-02-04 13:24:35 +00:00
An optional parameter MARK specifies a face or single-character string to
use when highlighting the day in the calendar."
1995-09-21 02:57:43 +00:00
(let* ((h-date (calendar-hebrew-from-absolute
(+ (calendar-absolute-from-gregorian
(diary-make-date death-month death-day death-year))
(if after-sunset 1 0))))
2008-04-07 01:59:37 +00:00
(h-year (calendar-extract-year h-date))
1995-09-21 02:57:43 +00:00
(d (calendar-absolute-from-gregorian date))
2008-04-07 01:59:37 +00:00
(yr (calendar-extract-year (calendar-hebrew-from-absolute d)))
1995-09-21 02:57:43 +00:00
(diff (- yr h-year))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(y (calendar-hebrew-yahrzeit h-date yr)))
1995-09-21 02:57:43 +00:00
(if (and (> diff 0) (or (= y d) (= y (1+ d))))
(cons mark
2008-03-13 06:29:28 +00:00
(format "Yahrzeit of %s%s: %d%s anniversary"
entry
(if (= y d) "" " (evening)")
diff
(diary-ordinal-suffix diff))))))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
;;;###diary-autoload
(define-obsolete-function-alias 'diary-yahrzeit 'diary-hebrew-yahrzeit "23.1")
1995-09-21 02:57:43 +00:00
;;;###diary-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun diary-hebrew-rosh-hodesh (&optional mark)
1995-09-21 02:57:43 +00:00
"Rosh Hodesh diary entry.
Entry applies if date is Rosh Hodesh, the day before, or the Saturday before.
2003-02-04 13:24:35 +00:00
An optional parameter MARK specifies a face or single-character string to
use when highlighting the day in the calendar."
1995-09-21 02:57:43 +00:00
(let* ((d (calendar-absolute-from-gregorian date))
(h-date (calendar-hebrew-from-absolute d))
2008-04-07 01:59:37 +00:00
(h-month (calendar-extract-month h-date))
(h-day (calendar-extract-day h-date))
(h-year (calendar-extract-year h-date))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(leap-year (calendar-hebrew-leap-year-p h-year))
(last-day (calendar-hebrew-last-day-of-month h-month h-year))
1995-09-21 02:57:43 +00:00
(h-month-names
(if leap-year
calendar-hebrew-month-name-array-leap-year
calendar-hebrew-month-name-array-common-year))
(this-month (aref h-month-names (1- h-month)))
2008-04-07 01:59:37 +00:00
(h-yesterday (calendar-extract-day
1995-09-21 02:57:43 +00:00
(calendar-hebrew-from-absolute (1- d)))))
(if (or (= h-day 30) (and (= h-day 1) (/= h-month 7)))
2003-02-04 13:24:35 +00:00
(cons mark
2008-03-13 06:29:28 +00:00
(format
"Rosh Hodesh %s"
(if (= h-day 30)
(format
"%s (first day)"
;; Next month must be in the same year since this
;; month can't be the last month of the year since
;; it has 30 days
(aref h-month-names h-month))
(if (= h-yesterday 30)
(format "%s (second day)" this-month)
this-month))))
(if (= (% d 7) 6) ; Saturday--check for Shabbat Mevarchim
(cond ((and (> h-day 22) (/= h-month 6) (= 29 last-day))
(cons mark
2008-03-13 06:29:28 +00:00
(format "Mevarchim Rosh Hodesh %s (%s)"
(aref h-month-names
(if (= h-month
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-last-month-of-year
2008-03-13 06:29:28 +00:00
h-year))
0 h-month))
(aref calendar-day-name-array (- 29 h-day)))))
((and (< h-day 30) (> h-day 22) (= 30 last-day))
(cons mark
2008-03-13 06:29:28 +00:00
(format "Mevarchim Rosh Hodesh %s (%s-%s)"
(aref h-month-names h-month)
(if (= h-day 29)
"tomorrow"
(aref calendar-day-name-array (- 29 h-day)))
(aref calendar-day-name-array
(% (- 30 h-day) 7))))))
1995-09-21 02:57:43 +00:00
(if (and (= h-day 29) (/= h-month 6))
(cons mark
2008-03-13 06:29:28 +00:00
(format "Erev Rosh Hodesh %s"
(aref h-month-names
(if (= h-month
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-last-month-of-year
2008-03-13 06:29:28 +00:00
h-year))
0 h-month)))))))))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
;;;###diary-autoload
(define-obsolete-function-alias 'diary-rosh-hodesh
'diary-hebrew-rosh-hodesh "23.1")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-parashiot-names
2008-03-13 06:29:28 +00:00
["Bereshith" "Noah" "Lech L'cha" "Vayera" "Hayei Sarah" "Toledoth"
"Vayetze" "Vayishlah" "Vayeshev" "Mikketz" "Vayiggash" "Vayhi"
"Shemoth" "Vaera" "Bo" "Beshallah" "Yithro" "Mishpatim"
"Terumah" "Tetzavveh" "Ki Tissa" "Vayakhel" "Pekudei" "Vayikra"
"Tzav" "Shemini" "Tazria" "Metzora" "Aharei Moth" "Kedoshim"
"Emor" "Behar" "Behukkotai" "Bemidbar" "Naso" "Behaalot'cha"
"Shelah L'cha" "Korah" "Hukkath" "Balak" "Pinhas" "Mattoth"
"Masei" "Devarim" "Vaethanan" "Ekev" "Reeh" "Shofetim"
"Ki Tetze" "Ki Tavo" "Nitzavim" "Vayelech" "Haazinu"]
"The names of the parashiot in the Torah.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun calendar-hebrew-parasha-name (p)
"Name(s) corresponding to parasha P."
2008-03-13 06:29:28 +00:00
(if (arrayp p) ; combined parasha
(format "%s/%s"
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(aref calendar-hebrew-parashiot-names (aref p 0))
(aref calendar-hebrew-parashiot-names (aref p 1)))
(aref calendar-hebrew-parashiot-names p)))
;; Following 14 constants are used in diary-parasha (intern).
2008-03-08 21:34:30 +00:00
;; The seven ordinary year types (keviot).
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Saturday-incomplete-Sunday
1995-09-21 02:57:43 +00:00
[nil 52 nil nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21 22]
2008-03-13 06:29:28 +00:00
23 24 nil 25 [26 27] [28 29] 30 [31 32] 33 34 35 36 37 38 39 40 [41 42]
43 44 45 46 47 48 49 50]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year starts on Saturday, is `incomplete' (Heshvan and Kislev each have
29 days), and has Passover start on Sunday.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Saturday-complete-Tuesday
1995-09-21 02:57:43 +00:00
[nil 52 nil nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21 22]
2008-03-13 06:29:28 +00:00
23 24 nil 25 [26 27] [28 29] 30 [31 32] 33 34 35 36 37 38 39 40 [41 42]
43 44 45 46 47 48 49 [50 51]]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Saturday, is `complete' (Heshvan and Kislev each
have 30 days), and has Passover start on Tuesday.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Monday-incomplete-Tuesday
1995-09-21 02:57:43 +00:00
[51 52 nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21 22]
2008-03-13 06:29:28 +00:00
23 24 nil 25 [26 27] [28 29] 30 [31 32] 33 34 35 36 37 38 39 40 [41 42]
43 44 45 46 47 48 49 [50 51]]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Monday, is `incomplete' (Heshvan and Kislev each
have 29 days), and has Passover start on Tuesday.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Monday-complete-Thursday
1995-09-21 02:57:43 +00:00
[51 52 nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21 22]
2008-03-13 06:29:28 +00:00
23 24 nil 25 [26 27] [28 29] 30 [31 32] 33 (nil . 34) (34 . 35) (35 . 36)
(36 . 37) (37 . 38) ([38 39] . 39) 40 [41 42] 43 44 45 46 47 48 49 [50 51]]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Monday, is `complete' (Heshvan and Kislev each have
30 days), and has Passover start on Thursday.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Tuesday-regular-Thursday
1995-09-21 02:57:43 +00:00
[51 52 nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21 22]
2008-03-13 06:29:28 +00:00
23 24 nil 25 [26 27] [28 29] 30 [31 32] 33 (nil . 34) (34 . 35) (35 . 36)
(36 . 37) (37 . 38) ([38 39] . 39) 40 [41 42] 43 44 45 46 47 48 49 [50 51]]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29 days and
Kislev has 30 days), and has Passover start on Thursday.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Thursday-regular-Saturday
1995-09-21 02:57:43 +00:00
[52 nil nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21 22] 23
2008-03-13 06:29:28 +00:00
24 nil (nil . 25) (25 . [26 27]) ([26 27] . [28 29]) ([28 29] . 30)
(30 . 31) ([31 32] . 32) 33 34 35 36 37 38 39 40 [41 42] 43 44 45 46 47 48
49 50]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Thursday, is `regular' (Heshvan has 29 days and
Kislev has 30 days), and has Passover start on Saturday.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Thursday-complete-Sunday
1995-09-21 02:57:43 +00:00
[52 nil nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
2008-03-13 06:29:28 +00:00
23 24 nil 25 [26 27] [28 29] 30 [31 32] 33 34 35 36 37 38 39 40 [41 42]
43 44 45 46 47 48 49 50]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Thursday, is `complete' (Heshvan and Kislev each
have 30 days), and has Passover start on Sunday.")
2008-03-08 21:34:30 +00:00
;; The seven leap year types (keviot).
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Saturday-incomplete-Tuesday
1995-09-21 02:57:43 +00:00
[nil 52 nil nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
2008-03-13 06:29:28 +00:00
23 24 25 26 27 nil 28 29 30 31 32 33 34 35 36 37 38 39 40 [41 42]
43 44 45 46 47 48 49 [50 51]]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Saturday, is `incomplete' (Heshvan and Kislev each
have 29 days), and has Passover start on Tuesday.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Saturday-complete-Thursday
1995-09-21 02:57:43 +00:00
[nil 52 nil nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
2008-03-13 06:29:28 +00:00
23 24 25 26 27 nil 28 29 30 31 32 33 (nil . 34) (34 . 35) (35 . 36)
(36 . 37) (37 . 38) ([38 39] . 39) 40 [41 42] 43 44 45 46 47 48 49 [50 51]]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Saturday, is `complete' (Heshvan and Kislev each
have 30 days), and has Passover start on Thursday.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Monday-incomplete-Thursday
1995-09-21 02:57:43 +00:00
[51 52 nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
2008-03-13 06:29:28 +00:00
23 24 25 26 27 nil 28 29 30 31 32 33 (nil . 34) (34 . 35) (35 . 36)
(36 . 37) (37 . 38) ([38 39] . 39) 40 [41 42] 43 44 45 46 47 48 49 [50 51]]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Monday, is `incomplete' (Heshvan and Kislev each
have 29 days), and has Passover start on Thursday.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Monday-complete-Saturday
1995-09-21 02:57:43 +00:00
[51 52 nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
2008-03-13 06:29:28 +00:00
23 24 25 26 27 nil (nil . 28) (28 . 29) (29 . 30) (30 . 31) (31 . 32)
(32 . 33) (33 . 34) (34 . 35) (35 . 36) (36 . 37) (37 . 38) (38 . 39)
(39 . 40) (40 . 41) ([41 42] . 42) 43 44 45 46 47 48 49 50]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Monday, is `complete' (Heshvan and Kislev each have
30 days), and has Passover start on Saturday.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Tuesday-regular-Saturday
1995-09-21 02:57:43 +00:00
[51 52 nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
2008-03-13 06:29:28 +00:00
23 24 25 26 27 nil (nil . 28) (28 . 29) (29 . 30) (30 . 31) (31 . 32)
(32 . 33) (33 . 34) (34 . 35) (35 . 36) (36 . 37) (37 . 38) (38 . 39)
(39 . 40) (40 . 41) ([41 42] . 42) 43 44 45 46 47 48 49 50]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Tuesday, is `regular' (Heshvan has 29 days and
Kislev has 30 days), and has Passover start on Saturday.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Thursday-incomplete-Sunday
1995-09-21 02:57:43 +00:00
[52 nil nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
2008-03-13 06:29:28 +00:00
23 24 25 26 27 28 nil 29 30 31 32 33 34 35 36 37 38 39 40 41 42
43 44 45 46 47 48 49 50]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Thursday, is `incomplete' (Heshvan and Kislev both
have 29 days), and has Passover start on Sunday.")
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defconst calendar-hebrew-year-Thursday-complete-Tuesday
1995-09-21 02:57:43 +00:00
[52 nil nil 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
2008-03-13 06:29:28 +00:00
23 24 25 26 27 28 nil 29 30 31 32 33 34 35 36 37 38 39 40 41 42
43 44 45 46 47 48 49 [50 51]]
1995-09-21 02:57:43 +00:00
"The structure of the parashiot.
Hebrew year that starts on Thursday, is `complete' (Heshvan and Kislev both
have 30 days), and has Passover start on Tuesday.")
;;;###diary-autoload
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(defun diary-hebrew-parasha (&optional mark)
"Parasha diary entry--entry applies if date is a Saturday.
An optional parameter MARK specifies a face or single-character string to
use when highlighting the day in the calendar."
(let ((d (calendar-absolute-from-gregorian date)))
(if (= (% d 7) 6) ; Saturday
2008-04-07 01:59:37 +00:00
(let* ((h-year (calendar-extract-year
(calendar-hebrew-from-absolute d)))
(rosh-hashanah
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-to-absolute (list 7 1 h-year)))
(passover
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-to-absolute (list 1 15 h-year)))
(rosh-hashanah-day
(aref calendar-day-name-array (% rosh-hashanah 7)))
(passover-day
(aref calendar-day-name-array (% passover 7)))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(long-h (calendar-hebrew-long-heshvan-p h-year))
(short-k (calendar-hebrew-short-kislev-p h-year))
(type (cond ((and long-h (not short-k)) "complete")
((and (not long-h) short-k) "incomplete")
(t "regular")))
(year-format
(symbol-value
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(intern (format "calendar-hebrew-year-%s-%s-%s" ; keviah
rosh-hashanah-day type passover-day))))
(first-saturday ; of Hebrew year
(calendar-dayname-on-or-before 6 (+ 6 rosh-hashanah)))
(saturday ; which Saturday of the Hebrew year
(/ (- d first-saturday) 7))
(parasha (aref year-format saturday)))
(if parasha
(cons mark
(format
"Parashat %s"
(if (listp parasha) ; Israel differs from diaspora
(if (car parasha)
(format "%s (diaspora), %s (Israel)"
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-parasha-name
(car parasha))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-parasha-name
(cdr parasha)))
(format "%s (Israel)"
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-parasha-name
(cdr parasha))))
(calendar-hebrew-leap-year-p): Rename hebrew-calendar-leap-year-p. Update callers. (calendar-hebrew-last-month-of-year): Rename hebrew-calendar-last-month-of-year. Update callers. (calendar-hebrew-elapsed-days): Rename hebrew-calendar-elapsed-days. Update callers. (calendar-hebrew-days-in-year): Rename hebrew-calendar-days-in-year. Update callers. (calendar-hebrew-long-heshvan-p): Rename hebrew-calendar-long-heshvan-p. Update callers. (calendar-hebrew-short-kislev-p): Rename hebrew-calendar-short-kislev-p. Update callers. (calendar-hebrew-last-day-of-month): Rename hebrew-calendar-last-day-of-month. Update callers. (calendar-hebrew-to-absolute): Rename calendar-absolute-from-hebrew. Keep old name as alias, update callers. (calendar-hebrew-print-date): Rename calendar-print-hebrew-date. Keep old name as alias, update callers. (calendar-hebrew-yahrzeit): Rename hebrew-calendar-yahrzeit. Keep old name as alias, update callers. (calendar-hebrew-goto-date): Rename calendar-goto-hebrew-date. Keep old name as alias. (holiday-hebrew-rosh-hashanah): Rename holiday-rosh-hashanah-etc. Keep old name as alias. (holiday-hebrew-hanukkah): Rename holiday-hanukkah. Keep old name as alias. (holiday-hebrew-passover): Rename holiday-passover-etc. Keep old name as alias. (holiday-hebrew-tisha-b-av): Rename holiday-tisha-b-av-etc. Keep old name as alias, update callers. (diary-hebrew-list-entries): Rename list-hebrew-diary-entries. Keep old name as alias. (calendar-hebrew-mark-date-pattern): Rename mark-hebrew-calendar-date-pattern. Keep old name as alias, update callers. (diary-hebrew-mark-entries): Rename mark-hebrew-diary-entries. Keep old name as alias. (diary-hebrew-insert-entry): Rename insert-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-monthly-entry): Rename insert-monthly-hebrew-diary-entry. Keep old name as alias. (diary-hebrew-insert-yearly-entry): Rename insert-yearly-hebrew-diary-entry. Keep old name as alias. (calender-hebrew-list-yahrzeits): Rename list-yahrzeit-dates. Keep old name as alias. (diary-hebrew-omer): Rename diary-omer. Keep old name as alias. (diary-hebrew-yahrzeit): Rename diary-yahrzeit. Keep old name as alias. (diary-hebrew-rosh-hodesh): Rename diary-rosh-hodesh. Keep old name as alias. (calendar-hebrew-parashiot-names): Rename hebrew-calendar-parashiot-names. Update callers. (calendar-hebrew-parasha-name): Rename hebrew-calendar-parasha-name. (calendar-hebrew-year-Saturday-incomplete-Sunday): Rename hebrew-calendar-year-Saturday-incomplete-Sunday. (calendar-hebrew-year-Saturday-complete-Tuesday): Rename hebrew-calendar-year-Saturday-complete-Tuesday. (calendar-hebrew-year-Monday-incomplete-Tuesday): Rename hebrew-calendar-year-Monday-incomplete-Tuesday. (calendar-hebrew-year-Monday-complete-Thursday): Rename hebrew-calendar-year-Monday-complete-Thursday. (calendar-hebrew-year-Tuesday-regular-Thursday): Rename hebrew-calendar-year-Tuesday-regular-Thursday. (calendar-hebrew-year-Thursday-regular-Saturday): Rename hebrew-calendar-year-Thursday-regular-Saturday. (calendar-hebrew-year-Thursday-complete-Sunday): Rename hebrew-calendar-year-Thursday-complete-Sunday. (calendar-hebrew-year-Saturday-incomplete-Tuesday): Rename hebrew-calendar-year-Saturday-incomplete-Tuesday. (calendar-hebrew-year-Saturday-complete-Thursday): Rename hebrew-calendar-year-Saturday-complete-Thursday. (calendar-hebrew-year-Monday-incomplete-Thursday): Rename hebrew-calendar-year-Monday-incomplete-Thursday. (calendar-hebrew-year-Monday-complete-Saturday): Rename hebrew-calendar-year-Monday-complete-Saturday. (calendar-hebrew-year-Tuesday-regular-Saturday): Rename hebrew-calendar-year-Tuesday-regular-Saturday. (calendar-hebrew-year-Thursday-incomplete-Sunday): Rename hebrew-calendar-year-Thursday-incomplete-Sunday. (calendar-hebrew-year-Thursday-complete-Tuesday): Rename hebrew-calendar-year-Thursday-complete-Tuesday. (diary-hebrew-parasha): Rename diary-parasha. Keep old name as alias. Update for above name changes of constants.
2008-04-05 20:55:08 +00:00
(calendar-hebrew-parasha-name parasha)))))))))
(define-obsolete-function-alias 'diary-parasha 'diary-hebrew-parasha "23.1")
(declare-function solar-setup "solar" ())
(declare-function solar-sunrise-sunset "solar" (date))
(defvar calendar-latitude)
(defvar calendar-longitude)
(defvar calendar-time-zone)
2008-04-06 20:54:25 +00:00
;; To be called from diary-list-sexp-entries, where DATE is bound.
;;;###diary-autoload
(defun diary-hebrew-sabbath-candles (&optional mark)
"Local time of candle lighting diary entry--applies if date is a Friday.
No diary entry if there is no sunset on that date. Uses
`diary-hebrew-sabbath-candles-minutes'.
An optional parameter MARK specifies a face or single-character string to
use when highlighting the day in the calendar."
(require 'solar)
(or (and calendar-latitude calendar-longitude calendar-time-zone)
(solar-setup))
(if (= (% (calendar-absolute-from-gregorian date) 7) 5) ; Friday
(let ((sunset (cadr (solar-sunrise-sunset date))))
(if sunset
(cons mark (format
"%s Sabbath candle lighting"
(apply 'solar-time-string
(cons (- (car sunset)
(/ diary-hebrew-sabbath-candles-minutes
60.0))
(cdr sunset)))))))))
;;;###diary-autoload
(define-obsolete-function-alias 'diary-sabbath-candles
'diary-hebrew-sabbath-candles "23.1")
1995-09-21 02:57:43 +00:00
(provide 'cal-hebrew)
;;; cal-hebrew.el ends here