diff options
| author | Glenn Morris | 2005-05-06 20:56:52 +0000 |
|---|---|---|
| committer | Glenn Morris | 2005-05-06 20:56:52 +0000 |
| commit | c5d164dc620a746b7d2ac6c833bb5e19e0a86f71 (patch) | |
| tree | bf54dc21cb3547fd79a07af7ffc16a2049bfa5a5 | |
| parent | 7eb70ddf0ddbea993c82630434cb0114814b70c8 (diff) | |
| download | emacs-c5d164dc620a746b7d2ac6c833bb5e19e0a86f71.tar.gz emacs-c5d164dc620a746b7d2ac6c833bb5e19e0a86f71.zip | |
Update maintainer.
(solar-setup): Throw error if called non-interactively.
| -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 |