diff options
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/calendar/cal-dst.el | 12 |
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 @@ | |||
| 1 | 2009-06-23 Glenn Morris <rgm@gnu.org> | 1 | 2009-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) |