From: Glenn Morris Date: Fri, 7 Mar 2008 04:20:41 +0000 (+0000) Subject: (org-agenda-sunrise-sunset): Require solar. X-Git-Tag: emacs-pretest-23.0.90~7416 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=100a41414a596397b98f4e03b6809a02c0bd17f9;p=emacs.git (org-agenda-sunrise-sunset): Require solar. (calendar-longitude, calendar-latitude, calendar-location-name): Declare for compiler. --- diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el index 912411453ed..71d8dee75f3 100644 --- a/lisp/textmodes/org.el +++ b/lisp/textmodes/org.el @@ -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