]> git.eshelyaron.com Git - emacs.git/commitdiff
Update maintainer.
authorGlenn Morris <rgm@gnu.org>
Fri, 6 May 2005 20:56:52 +0000 (20:56 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 6 May 2005 20:56:52 +0000 (20:56 +0000)
(solar-setup): Throw error if called non-interactively.

lisp/calendar/solar.el

index 57a6c6a40a803fcf4a97daac5839bf8fca0ba0d9..f8e747a317c02fa749babca9cc687367757fc9d3 100644 (file)
@@ -4,6 +4,7 @@
 
 ;; Author: Edward M. Reingold <reingold@cs.uiuc.edu>
 ;;     Denis B. Roegel <Denis.Roegel@loria.fr>
+;; Maintainer: Glenn Morris <gmorris@ast.cam.ac.uk>
 ;; Keywords: calendar
 ;; Human-Keywords: sunrise, sunset, equinox, solstice, calendar, diary,
 ;;     holidays
@@ -207,6 +208,11 @@ Needed for polar areas, in order to know whether the day lasts 0 or 24 hours.")
 
 (defun solar-setup ()
   "Prompt user for latitude, longitude, and time zone."
+  (unless (or (and calendar-longitude calendar-latitude calendar-time-zone)
+              (interactive-p))
+    ;; Defaults must be nil, else results could be subtlely wrong for
+    ;; user's real location.
+    (error "Calendar latitude, longitude and/or time-zone unset"))
   (beep)
   (if (not calendar-longitude)
       (setq calendar-longitude