]> git.eshelyaron.com Git - emacs.git/commitdiff
(org-agenda-sunrise-sunset): Require solar.
authorGlenn Morris <rgm@gnu.org>
Fri, 7 Mar 2008 04:20:41 +0000 (04:20 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 7 Mar 2008 04:20:41 +0000 (04:20 +0000)
(calendar-longitude, calendar-latitude, calendar-location-name):
Declare for compiler.

lisp/textmodes/org.el

index 912411453ed8ce1c9644e3ca926c82e9c03ed990..71d8dee75f3c0873e3f4a191382140544450a37a 100644 (file)
@@ -22728,12 +22728,17 @@ the cursor position."
   (interactive)
   (org-agenda-execute-calendar-command 'list-calendar-holidays))
 
+(defvar calendar-longitude)
+(defvar calendar-latitude)
+(defvar calendar-location-name)
+
 (defun org-agenda-sunrise-sunset (arg)
   "Display sunrise and sunset for the cursor date.
 Latitude and longitude can be specified with the variables
 `calendar-latitude' and `calendar-longitude'.  When called with prefix
 argument, latitude and longitude will be prompted for."
   (interactive "P")
+  (require 'solar)
   (let ((calendar-longitude (if arg nil calendar-longitude))
        (calendar-latitude  (if arg nil calendar-latitude))
        (calendar-location-name