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/holidays.el,v


From: Glenn Morris
Subject: [Emacs-diffs] Changes to emacs/lisp/calendar/holidays.el,v
Date: Sat, 08 Mar 2008 21:07:22 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Glenn Morris <gm>       08/03/08 21:07:22

Index: holidays.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/calendar/holidays.el,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -b -r1.58 -r1.59
--- holidays.el 8 Mar 2008 03:48:06 -0000       1.58
+++ holidays.el 8 Mar 2008 21:07:21 -0000       1.59
@@ -358,25 +358,25 @@
          (y2 y1))
     (increment-calendar-month m1 y1 -1)
     (increment-calendar-month m2 y2 1)
-    (let* ((d1;  first possible base date for holiday
+    (let* ((d1                 ;  first possible base date for holiday
             (+ (calendar-nth-named-absday 1 dayname m1 y1)
                (* -7 n)
                (if (> n 0) 1 -7)))
-           (d2;  last possible base date for holiday
+           (d2                  ;  last possible base date for holiday
             (+ (calendar-nth-named-absday -1 dayname m2 y2)
                (* -7 n)
                (if (> n 0) 7 -1)))
            (y1 (extract-calendar-year (calendar-gregorian-from-absolute d1)))
            (y2 (extract-calendar-year (calendar-gregorian-from-absolute d2)))
-           (y; year of base date
+           (y                           ; year of base date
             (if (or (= y1 y2) (> month 9))
                   y1
                 y2))
-           (d; day of base date
+           (d                           ; day of base date
             (or day (if (> n 0)
                         1
                       (calendar-last-day-of-month month y))))
-           (date; base date for holiday
+           (date                        ; base date for holiday
             (calendar-absolute-from-gregorian (list month d y))))
       (if (and (<= d1 date) (<= date d2))
           (list (list (calendar-nth-named-day n dayname month y d)
@@ -467,20 +467,20 @@
           (if (setq res (holiday-easter-etc (car elem) (cdr elem)))
               (setq res-list (append res res-list)))))
     (let* ((century (1+ (/ displayed-year 100)))
-           (shifted-epact ;; Age of moon for April 5...
-            (% (+ 14 (* 11 (% displayed-year 19)) ;;     ...by Nicaean rule
-                  (- ;; ...corrected for the Gregorian century rule
+           (shifted-epact               ; age of moon for April 5...
+            (% (+ 14 (* 11 (% displayed-year 19)) ;     ...by Nicaean rule
+                  (-     ; ...corrected for the Gregorian century rule
                    (/ (* 3 century) 4))
-                  (/ ;; ...corrected for Metonic cycle inaccuracy.
+                  (/      ; ...corrected for Metonic cycle inaccuracy
                    (+ 5 (* 8 century)) 25)
-                  (* 30 century)) ;;              Keeps value positive.
+                  (* 30 century))  ;              keeps value positive
                30))
-           (adjusted-epact ;;  Adjust for 29.5 day month.
+           (adjusted-epact              ;  adjust for 29.5 day month
             (if (or (zerop shifted-epact)
                     (and (= shifted-epact 1) (< 10 (% displayed-year 19))))
                 (1+ shifted-epact)
               shifted-epact))
-           (paschal-moon ;; Day after the full moon on or after March 21.
+           (paschal-moon ; day after the full moon on or after March 21
             (- (calendar-absolute-from-gregorian (list 4 19 displayed-year))
                adjusted-epact))
            (abs-easter (calendar-dayname-on-or-before 0 (+ paschal-moon 7))))
@@ -501,14 +501,14 @@
              (calendar-julian-from-absolute
               (calendar-absolute-from-gregorian
                (list m (calendar-last-day-of-month m y) y)))))
-           (shifted-epact ;; Age of moon for April 5.
+           (shifted-epact               ; age of moon for April 5
             (% (+ 14
                   (* 11 (% julian-year 19)))
                30))
-           (paschal-moon  ;; Day after full moon on or after March 21.
+           (paschal-moon    ; day after full moon on or after March 21
             (- (calendar-absolute-from-julian (list 4 19 julian-year))
                shifted-epact))
-           (nicaean-easter;; Sunday following the Paschal moon
+           (nicaean-easter         ; Sunday following the Paschal moon
             (calendar-gregorian-from-absolute
              (calendar-dayname-on-or-before 0 (+ paschal-moon 7)))))
       (if (calendar-date-is-visible-p nicaean-easter)




reply via email to

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