diff options
| -rw-r--r-- | lisp/calendar/solar.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/calendar/solar.el b/lisp/calendar/solar.el index 57a6c6a40a8..f8e747a317c 100644 --- a/lisp/calendar/solar.el +++ b/lisp/calendar/solar.el | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu> | 5 | ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu> |
| 6 | ;; Denis B. Roegel <Denis.Roegel@loria.fr> | 6 | ;; Denis B. Roegel <Denis.Roegel@loria.fr> |
| 7 | ;; Maintainer: Glenn Morris <gmorris@ast.cam.ac.uk> | ||
| 7 | ;; Keywords: calendar | 8 | ;; Keywords: calendar |
| 8 | ;; Human-Keywords: sunrise, sunset, equinox, solstice, calendar, diary, | 9 | ;; Human-Keywords: sunrise, sunset, equinox, solstice, calendar, diary, |
| 9 | ;; holidays | 10 | ;; holidays |
| @@ -207,6 +208,11 @@ Needed for polar areas, in order to know whether the day lasts 0 or 24 hours.") | |||
| 207 | 208 | ||
| 208 | (defun solar-setup () | 209 | (defun solar-setup () |
| 209 | "Prompt user for latitude, longitude, and time zone." | 210 | "Prompt user for latitude, longitude, and time zone." |
| 211 | (unless (or (and calendar-longitude calendar-latitude calendar-time-zone) | ||
| 212 | (interactive-p)) | ||
| 213 | ;; Defaults must be nil, else results could be subtlely wrong for | ||
| 214 | ;; user's real location. | ||
| 215 | (error "Calendar latitude, longitude and/or time-zone unset")) | ||
| 210 | (beep) | 216 | (beep) |
| 211 | (if (not calendar-longitude) | 217 | (if (not calendar-longitude) |
| 212 | (setq calendar-longitude | 218 | (setq calendar-longitude |