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/solar.el [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/calendar/solar.el [lexbind]
Date: Tue, 14 Oct 2003 19:42:19 -0400

Index: emacs/lisp/calendar/solar.el
diff -c emacs/lisp/calendar/solar.el:1.43.2.1 
emacs/lisp/calendar/solar.el:1.43.2.2
*** emacs/lisp/calendar/solar.el:1.43.2.1       Fri Apr  4 01:20:16 2003
--- emacs/lisp/calendar/solar.el        Tue Oct 14 19:42:15 2003
***************
*** 1,6 ****
  ;;; solar.el --- calendar functions for solar events
  
! ;; Copyright (C) 1992, 1993, 1995, 1997 Free Software Foundation, Inc.
  
  ;; Author: Edward M. Reingold <address@hidden>
  ;;    Denis B. Roegel <address@hidden>
--- 1,6 ----
  ;;; solar.el --- calendar functions for solar events
  
! ;; Copyright (C) 1992, 1993, 1995, 1997, 2003 Free Software Foundation, Inc.
  
  ;; Author: Edward M. Reingold <address@hidden>
  ;;    Denis B. Roegel <address@hidden>
***************
*** 59,64 ****
--- 59,67 ----
  
  ;;; Code:
  
+ (defvar displayed-month)
+ (defvar displayed-year)
+ 
  (if (fboundp 'atan)
      (require 'lisp-float-type)
    (error "Solar/lunar calculations impossible since floating point is 
unavailable"))
***************
*** 939,944 ****
--- 942,974 ----
                  (format "%s Sabbath candle lighting"
                      (apply 'solar-time-string light)))))))
  
+ ; from Meeus, 1991, page 167
+ (defconst solar-seasons-data
+   '((485 324.96 1934.136)
+     (203 337.23 32964.467)
+     (199 342.08 20.186)
+     (182 27.85 445267.112)
+     (156 73.14 45036.886)
+     (136 171.52 22518.443)
+     (77 222.54 65928.934)
+     (74 296.72 3034.906)
+     (70 243.58 9037.513)
+     (58 119.81 33718.147)
+     (52 297.17 150.678)
+     (50 21.02 2281.226)
+     (45 247.54 29929.562)
+     (44 325.15 31555.956)
+     (29 60.93 4443.417)
+     (18 155.12 67555.328)
+     (17 288.79 4562.452)
+     (16 198.04 62894.029)
+     (14 199.76 31436.921)
+     (12 95.39 14577.848)
+     (12 287.11 31931.756)
+     (12 320.81 34777.259)
+     (9 227.73 1222.114)
+     (8 15.45 16859.074)))
+ 
  (defun solar-equinoxes/solstices (k year)
    "Date of equinox/solstice K for YEAR.
  K=0, spring equinox; K=1, summer solstice; K=2, fall equinox;
***************
*** 1017,1049 ****
                                     (* -0.00823 z z z)
                                     (* 0.00032 z z z z)))))))
  
- ; from Meeus, 1991, page 167
- (defconst solar-seasons-data
-   '((485 324.96 1934.136)
-     (203 337.23 32964.467)
-     (199 342.08 20.186)
-     (182 27.85 445267.112)
-     (156 73.14 45036.886)
-     (136 171.52 22518.443)
-     (77 222.54 65928.934)
-     (74 296.72 3034.906)
-     (70 243.58 9037.513)
-     (58 119.81 33718.147)
-     (52 297.17 150.678)
-     (50 21.02 2281.226)
-     (45 247.54 29929.562)
-     (44 325.15 31555.956)
-     (29 60.93 4443.417)
-     (18 155.12 67555.328)
-     (17 288.79 4562.452)
-     (16 198.04 62894.029)
-     (14 199.76 31436.921)
-     (12 95.39 14577.848)
-     (12 287.11 31931.756)
-     (12 320.81 34777.259)
-     (9 227.73 1222.114)
-     (8 15.45 16859.074)))
- 
  ;;;###autoload
  (defun solar-equinoxes-solstices ()
    "*local* date and time of equinoxes and solstices, if visible in the 
calendar window.
--- 1047,1052 ----
***************
*** 1093,1096 ****
--- 1096,1100 ----
  
  (provide 'solar)
  
+ ;;; arch-tag: bc0ff693-df58-4666-bde4-2a7837ccb8fe
  ;;; solar.el ends here




reply via email to

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