changeset 62129:c86c86ce57a3

Update maintainer. (solar-setup): Throw error if called non-interactively.
author Glenn Morris <rgm@gnu.org>
date Fri, 06 May 2005 20:56:52 +0000
parents 15f5fd99e048
children 109432f1fa94
files lisp/calendar/solar.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/solar.el	Fri May 06 20:56:22 2005 +0000
+++ b/lisp/calendar/solar.el	Fri May 06 20:56:52 2005 +0000
@@ -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 @@
 
 (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