From 3d8b9024adf6136edd3f7b7edf70a88b6ab8a61b Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 28 Jun 2012 14:13:38 +0200 Subject: [PATCH] * calendar/cal-dst.el (calendar-current-time-zone): Return calendar-current-time-zone-cache if non-nil. --- lisp/ChangeLog | 5 +++++ lisp/calendar/cal-dst.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ab355217b9e..9373bf14fbb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-06-28 Andreas Schwab + + * calendar/cal-dst.el (calendar-current-time-zone): Return + calendar-current-time-zone-cache if non-nil. + 2012-06-25 Masatake YAMATO * progmodes/which-func.el (which-func-format): diff --git a/lisp/calendar/cal-dst.el b/lisp/calendar/cal-dst.el index e3996cae3de..4af3ea53ab3 100644 --- a/lisp/calendar/cal-dst.el +++ b/lisp/calendar/cal-dst.el @@ -347,8 +347,8 @@ DST-ZONE are equal, and all the DST-* integer variables are 0. Some operating systems cannot provide all this information to Emacs; in this case, `calendar-current-time-zone' returns a list containing nil for the data it can't find." - (unless calendar-current-time-zone-cache - (setq calendar-current-time-zone-cache (calendar-dst-find-data)))) + (or calendar-current-time-zone-cache + (setq calendar-current-time-zone-cache (calendar-dst-find-data)))) ;; Following options should be set based on conditions when the code -- 2.39.2