diff options
| author | Glenn Morris | 2008-04-02 03:17:21 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-04-02 03:17:21 +0000 |
| commit | 2d354894b708e9267ffcb5982b1b2c30327332ff (patch) | |
| tree | 387f3465bbfa22e838ae403d73eaf8aa01896665 | |
| parent | 80b24a359bd3b34e3fa1d676c004cb4c381ba370 (diff) | |
| download | emacs-2d354894b708e9267ffcb5982b1b2c30327332ff.tar.gz emacs-2d354894b708e9267ffcb5982b1b2c30327332ff.zip | |
(list-yahrzeit-dates): Expand calendar-for-loop call.
| -rw-r--r-- | lisp/calendar/cal-hebrew.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el index d84087734e9..ff50918cd8a 100644 --- a/lisp/calendar/cal-hebrew.el +++ b/lisp/calendar/cal-hebrew.el | |||
| @@ -374,6 +374,7 @@ nil if it is not visible in the current calendar window." | |||
| 374 | "Hoshanah Rabbah"))) | 374 | "Hoshanah Rabbah"))) |
| 375 | (output-list | 375 | (output-list |
| 376 | (holiday-filter-visible-calendar mandatory))) | 376 | (holiday-filter-visible-calendar mandatory))) |
| 377 | ;; FIXME simplify? | ||
| 377 | (if all-hebrew-calendar-holidays | 378 | (if all-hebrew-calendar-holidays |
| 378 | (setq output-list | 379 | (setq output-list |
| 379 | (append | 380 | (append |
| @@ -655,7 +656,8 @@ from the cursor position." | |||
| 655 | (calendar-absolute-from-gregorian death-date))) | 656 | (calendar-absolute-from-gregorian death-date))) |
| 656 | (h-month (extract-calendar-month h-date)) | 657 | (h-month (extract-calendar-month h-date)) |
| 657 | (h-day (extract-calendar-day h-date)) | 658 | (h-day (extract-calendar-day h-date)) |
| 658 | (h-year (extract-calendar-year h-date))) | 659 | (h-year (extract-calendar-year h-date)) |
| 660 | (i (1- start-year))) | ||
| 659 | (calendar-in-read-only-buffer cal-hebrew-yahrzeit-buffer | 661 | (calendar-in-read-only-buffer cal-hebrew-yahrzeit-buffer |
| 660 | (calendar-set-mode-line | 662 | (calendar-set-mode-line |
| 661 | (format "Yahrzeit dates for %s = %s" | 663 | (format "Yahrzeit dates for %s = %s" |
| @@ -665,7 +667,7 @@ from the cursor position." | |||
| 665 | calendar-hebrew-month-name-array-leap-year | 667 | calendar-hebrew-month-name-array-leap-year |
| 666 | calendar-hebrew-month-name-array-common-year))) | 668 | calendar-hebrew-month-name-array-common-year))) |
| 667 | (calendar-date-string h-date nil t)))) | 669 | (calendar-date-string h-date nil t)))) |
| 668 | (calendar-for-loop i from start-year to end-year do | 670 | (while (<= (setq i (1+ i)) end-year) |
| 669 | (insert | 671 | (insert |
| 670 | (calendar-date-string | 672 | (calendar-date-string |
| 671 | (calendar-gregorian-from-absolute | 673 | (calendar-gregorian-from-absolute |
| @@ -673,8 +675,8 @@ from the cursor position." | |||
| 673 | h-date | 675 | h-date |
| 674 | (extract-calendar-year | 676 | (extract-calendar-year |
| 675 | (calendar-hebrew-from-absolute | 677 | (calendar-hebrew-from-absolute |
| 676 | (calendar-absolute-from-gregorian (list 1 1 i))))))) "\n"))) | 678 | (calendar-absolute-from-gregorian (list 1 1 i))))))) "\n")))) |
| 677 | (message "Computing Yahrzeits...done"))) | 679 | (message "Computing Yahrzeits...done")) |
| 678 | 680 | ||
| 679 | (defvar date) | 681 | (defvar date) |
| 680 | 682 | ||