mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-01 03:11:09 -08:00
(org-agenda-sunrise-sunset): Require solar.
(calendar-longitude, calendar-latitude, calendar-location-name): Declare for compiler.
This commit is contained in:
parent
719b64c2d9
commit
100a41414a
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue