aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-06-23 07:30:25 +0000
committerGlenn Morris2009-06-23 07:30:25 +0000
commit84cb770dc98fddc1165b2a8aade90c33c97175be (patch)
tree8528363916cc431fbecc34ead85adb630bb6dffd
parentd916c9650d8f175bdee543955fa49f119ca0daf3 (diff)
downloademacs-84cb770dc98fddc1165b2a8aade90c33c97175be.tar.gz
emacs-84cb770dc98fddc1165b2a8aade90c33c97175be.zip
(calendar-time-zone-daylight-rules): Simplify Persian conditionals.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/calendar/cal-dst.el12
2 files changed, 9 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 820aa6fc764..ae119c8848a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12009-06-23 Glenn Morris <rgm@gnu.org> 12009-06-23 Glenn Morris <rgm@gnu.org>
2 2
3 * calendar/cal-dst.el (calendar-time-zone-daylight-rules):
4 Simplify Persian conditionals.
5
3 * calc/calc-graph.el (calc-graph-plot): Avoid assignment to free 6 * calc/calc-graph.el (calc-graph-plot): Avoid assignment to free
4 variable `filename'. 7 variable `filename'.
5 8
diff --git a/lisp/calendar/cal-dst.el b/lisp/calendar/cal-dst.el
index 0bcb61b4d42..b7d9b05228d 100644
--- a/lisp/calendar/cal-dst.el
+++ b/lisp/calendar/cal-dst.el
@@ -212,12 +212,12 @@ The result has the proper form for `calendar-daylight-savings-starts'."
212 rlist) 212 rlist)
213 ;; 01-01 and 07-01 for this year's Persian calendar. 213 ;; 01-01 and 07-01 for this year's Persian calendar.
214 ;; FIXME what does the Persian calendar have to do with this? 214 ;; FIXME what does the Persian calendar have to do with this?
215 (if (and (= m 3) (<= 20 d) (<= d 21)) 215 (and (= m 3) (memq d '(20 21))
216 '((calendar-gregorian-from-absolute 216 '((calendar-gregorian-from-absolute
217 (calendar-persian-to-absolute `(1 1 ,(- year 621)))))) 217 (calendar-persian-to-absolute `(1 1 ,(- year 621))))))
218 (if (and (= m 9) (<= 22 d) (<= d 23)) 218 (and (= m 9) (memq d '(22 23))
219 '((calendar-gregorian-from-absolute 219 '((calendar-gregorian-from-absolute
220 (calendar-persian-to-absolute `(7 1 ,(- year 621)))))))) 220 (calendar-persian-to-absolute `(7 1 ,(- year 621))))))))
221 (prevday-sec (- -1 utc-diff)) ; last sec of previous local day 221 (prevday-sec (- -1 utc-diff)) ; last sec of previous local day
222 (year (1+ y)) 222 (year (1+ y))
223 new-rules) 223 new-rules)