From 100a41414a596397b98f4e03b6809a02c0bd17f9 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 7 Mar 2008 04:20:41 +0000 Subject: [PATCH] (org-agenda-sunrise-sunset): Require solar. (calendar-longitude, calendar-latitude, calendar-location-name): Declare for compiler. --- lisp/textmodes/org.el | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.2