emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/calendar/cal-hebrew.el,v


From: Glenn Morris
Subject: [Emacs-diffs] Changes to emacs/lisp/calendar/cal-hebrew.el,v
Date: Sat, 29 Mar 2008 23:23:20 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Glenn Morris <gm>       08/03/29 23:23:20

Index: cal-hebrew.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/calendar/cal-hebrew.el,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- cal-hebrew.el       29 Mar 2008 02:46:20 -0000      1.49
+++ cal-hebrew.el       29 Mar 2008 23:23:20 -0000      1.50
@@ -284,27 +284,26 @@
              (if (<  9 month) (- month  9) (+ month 3))
              (if (<  8 month) (- month  8) (+ month 4))
              (if (<  7 month) (- month  7) (+ month 5))))
-      (let ((m1 displayed-month)
+      (let* ((m1 displayed-month)
               (y1 displayed-year)
               (m2 displayed-month)
               (y2 displayed-year)
-            (year))
+             (start-date (progn
           (increment-calendar-month m1 y1 -1)
+                           (calendar-absolute-from-gregorian (list m1 1 y1))))
+             (end-date (progn
           (increment-calendar-month m2 y2 1)
-        (let* ((start-date (calendar-absolute-from-gregorian
-                            (list m1 1 y1)))
-               (end-date (calendar-absolute-from-gregorian
-                          (list m2 (calendar-last-day-of-month m2 y2) y2)))
+                         (calendar-absolute-from-gregorian
+                          (list m2 (calendar-last-day-of-month m2 y2) y2))))
                  (hebrew-start (calendar-hebrew-from-absolute start-date))
                  (hebrew-end (calendar-hebrew-from-absolute end-date))
                  (hebrew-y1 (extract-calendar-year hebrew-start))
-               (hebrew-y2 (extract-calendar-year hebrew-end)))
-          (setq year (if (< 6 month) hebrew-y2 hebrew-y1))
-          (let ((date (calendar-gregorian-from-absolute
-                       (calendar-absolute-from-hebrew
-                        (list month day year)))))
+             (hebrew-y2 (extract-calendar-year hebrew-end))
+             (year (if (< 6 month) hebrew-y2 hebrew-y1))
+             (date (calendar-gregorian-from-absolute
+                    (calendar-absolute-from-hebrew (list month day year)))))
               (if (calendar-date-is-visible-p date)
-                (list (list date string))))))))
+            (list (list date string))))))
 
 ;; h-r-h-e should be called from holidays code.
 (declare-function holiday-filter-visible-calendar "holidays" (l))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]