diff options
| author | Andreas Schwab | 2012-06-28 14:13:38 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2012-06-28 14:13:38 +0200 |
| commit | 3d8b9024adf6136edd3f7b7edf70a88b6ab8a61b (patch) | |
| tree | 96c3e6ba0b3e8a8a9ca356573ae548bb5c9da46a | |
| parent | 538044ed9ee796084f07100dd8c72f44c338ca3b (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | 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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-06-25 Masatake YAMATO <yamato@redhat.com> | 6 | 2012-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. | |||
| 347 | Some operating systems cannot provide all this information to Emacs; in this | 347 | Some operating systems cannot provide all this information to Emacs; in this |
| 348 | case, `calendar-current-time-zone' returns a list containing nil for the data | 348 | case, `calendar-current-time-zone' returns a list containing nil for the data |
| 349 | it can't find." | 349 | it 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 |