changeset 92542:de672b8f60fd

(org-agenda-sunrise-sunset): Require solar. (calendar-longitude, calendar-latitude, calendar-location-name): Declare for compiler.
author Glenn Morris <rgm@gnu.org>
date Fri, 07 Mar 2008 04:20:41 +0000
parents 4f7aee5952c1
children 117d4bd1128b
files lisp/textmodes/org.el
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/org.el	Fri Mar 07 03:56:16 2008 +0000
+++ b/lisp/textmodes/org.el	Fri Mar 07 04:20:41 2008 +0000
@@ -22728,12 +22728,17 @@
   (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