X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/e63e9234d012ed8ac10e32d3b2a0e1539b5685d0..d6f9c03fbb8ae9a268bf6c8ab9651d9c831e8865:/lisp/calendar/cal-hebrew.el diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el index e5373a2875..6450b413aa 100644 --- a/lisp/calendar/cal-hebrew.el +++ b/lisp/calendar/cal-hebrew.el @@ -1,6 +1,6 @@ ;;; cal-hebrew.el --- calendar functions for the Hebrew calendar -;; Copyright (C) 1995, 1997, 2001-2011 Free Software Foundation, Inc. +;; Copyright (C) 1995, 1997, 2001-2013 Free Software Foundation, Inc. ;; Author: Nachum Dershowitz ;; Edward M. Reingold @@ -731,7 +731,7 @@ from the cursor position." (interactive (let* ((death-date (if (equal (current-buffer) (get-buffer calendar-buffer)) - (calendar-cursor-to-date) + (calendar-cursor-to-date t) (let* ((today (calendar-current-date)) (year (calendar-read "Year of death (>0): " @@ -764,8 +764,6 @@ from the cursor position." (message "Computing Yahrzeits...") (let* ((h-date (calendar-hebrew-from-absolute (calendar-absolute-from-gregorian death-date))) - (h-month (calendar-extract-month h-date)) - (h-day (calendar-extract-day h-date)) (h-year (calendar-extract-year h-date)) (i (1- start-year))) (calendar-in-read-only-buffer calendar-hebrew-yahrzeit-buffer @@ -900,8 +898,6 @@ use when highlighting the day in the calendar." (+ (calendar-absolute-from-gregorian (diary-make-date death-month death-day death-year)) (if after-sunset 1 0)))) - (h-month (calendar-extract-month h-date)) - (h-day (calendar-extract-day h-date)) (h-year (calendar-extract-year h-date)) (d (calendar-absolute-from-gregorian date)) (yr (calendar-extract-year (calendar-hebrew-from-absolute d))) @@ -954,16 +950,17 @@ use when highlighting the day in the calendar." (format "%s (second day)" this-month) this-month)))) (if (= (% d 7) 6) ; Saturday--check for Shabbat Mevarchim - (cons mark - (cond ((and (> h-day 22) (/= h-month 6) (= 29 last-day)) + (cond ((and (> h-day 22) (/= h-month 6) (= 29 last-day)) + (cons mark (format "Mevarchim Rosh Hodesh %s (%s)" (aref h-month-names (if (= h-month (calendar-hebrew-last-month-of-year h-year)) 0 h-month)) - (aref calendar-day-name-array (- 29 h-day)))) - ((and (< h-day 30) (> h-day 22) (= 30 last-day)) + (aref calendar-day-name-array (- 29 h-day))))) + ((and (< h-day 30) (> h-day 22) (= 30 last-day)) + (cons mark (format "Mevarchim Rosh Hodesh %s (%s-%s)" (aref h-month-names h-month) (if (= h-day 29)