aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2012-06-28 14:13:38 +0200
committerAndreas Schwab2012-06-28 14:13:38 +0200
commit3d8b9024adf6136edd3f7b7edf70a88b6ab8a61b (patch)
tree96c3e6ba0b3e8a8a9ca356573ae548bb5c9da46a
parent538044ed9ee796084f07100dd8c72f44c338ca3b (diff)
downloademacs-3d8b9024adf6136edd3f7b7edf70a88b6ab8a61b.tar.gz
emacs-3d8b9024adf6136edd3f7b7edf70a88b6ab8a61b.zip
* calendar/cal-dst.el (calendar-current-time-zone): Return
calendar-current-time-zone-cache if non-nil.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/calendar/cal-dst.el4
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 @@
12012-06-28 Andreas Schwab <schwab@linux-m68k.org>
2
3 * calendar/cal-dst.el (calendar-current-time-zone): Return
4 calendar-current-time-zone-cache if non-nil.
5
12012-06-25 Masatake YAMATO <yamato@redhat.com> 62012-06-25 Masatake YAMATO <yamato@redhat.com>
2 7
3 * progmodes/which-func.el (which-func-format): 8 * 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.
347Some operating systems cannot provide all this information to Emacs; in this 347Some operating systems cannot provide all this information to Emacs; in this
348case, `calendar-current-time-zone' returns a list containing nil for the data 348case, `calendar-current-time-zone' returns a list containing nil for the data
349it can't find." 349it can't find."
350 (unless calendar-current-time-zone-cache 350 (or calendar-current-time-zone-cache
351 (setq calendar-current-time-zone-cache (calendar-dst-find-data)))) 351 (setq calendar-current-time-zone-cache (calendar-dst-find-data))))
352 352
353 353
354;; Following options should be set based on conditions when the code 354;; Following options should be set based on conditions when the code