aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-03-16 09:13:53 +0000
committerJim Blandy1993-03-16 09:13:53 +0000
commitaecd6486720b6d4e316c180841627d57be428f26 (patch)
tree7122ac5661bd6076d8323a040df45022d6e5f28e
parent806b4d9b907fb898db622571660263fc316aaf4d (diff)
downloademacs-aecd6486720b6d4e316c180841627d57be428f26.tar.gz
emacs-aecd6486720b6d4e316c180841627d57be428f26.zip
* calendar.el (calendar-time-zone): Initialize this when
calendar.el loads, not in the defvar.
-rw-r--r--lisp/calendar/calendar.el15
1 files changed, 13 insertions, 2 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 91a0bfd8224..11900f5f7c4 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -477,11 +477,22 @@ For example, -74.0 for New York City.")
477`calendar-longitude', calendar-latitude'. Default value is just the latitude, 477`calendar-longitude', calendar-latitude'. Default value is just the latitude,
478longitude pair.") 478longitude pair.")
479 479
480;;; Since this defvar is marked to go into loaddefs.el, it will be
481;;; evaluated when Emacs is dumped. However, this variable's
482;;; appropriate value really depends on the conditions under which the
483;;; code is invoked; it would be inappropriate to initialize this when
484;;; Emacs is dumped. So, we initialize it to nil now, and if it's
485;;; still nil when this file is actually loaded, we give it its real value.
480;;;###autoload 486;;;###autoload
481(defvar calendar-time-zone (car (current-time-zone)) 487(defvar calendar-time-zone nil
482 "*Number of minutes difference between local standard time at 488 "*Number of minutes difference between local standard time at
483`calendar-location-name' and Universal (Greenwich) Time. For example, -300 489`calendar-location-name' and Universal (Greenwich) Time. For example, -300
484for New York City, -480 for Los Angeles.") 490for New York City, -480 for Los Angeles.
491If this is nil, it will be set to the local time zone when the calendar
492package loads.")
493;;; If the user has given this a real value, don't wipe it out.
494(or calendar-time-zone
495 (setq calendar-time-zone (current-time-zone)))
485 496
486;;;###autoload 497;;;###autoload
487(defvar calendar-standard-time-zone-name (car (nthcdr 2 (current-time-zone))) 498(defvar calendar-standard-time-zone-name (car (nthcdr 2 (current-time-zone)))