diff options
| author | Glenn Morris | 2008-03-16 01:23:25 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-16 01:23:25 +0000 |
| commit | c97663f6bc5154ae3eb3c959c40af21ce9578a7a (patch) | |
| tree | 1f56715058cdc5a06751e81c82d890d5fc5b3a6b | |
| parent | df3b40c18cb641f3221696720cacf700efdbcef0 (diff) | |
| download | emacs-c97663f6bc5154ae3eb3c959c40af21ce9578a7a.tar.gz emacs-c97663f6bc5154ae3eb3c959c40af21ce9578a7a.zip | |
(calendar-chinese-from-absolute, calendar-chinese-date-string): Expand
calendar-mod calls.
| -rw-r--r-- | lisp/calendar/cal-china.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/calendar/cal-china.el b/lisp/calendar/cal-china.el index f66645e918b..69aa91f2137 100644 --- a/lisp/calendar/cal-china.el +++ b/lisp/calendar/cal-china.el | |||
| @@ -380,7 +380,8 @@ Gregorian date Sunday, December 31, 1 BC." | |||
| 380 | ;; ...so first month on list is of no interest. | 380 | ;; ...so first month on list is of no interest. |
| 381 | (setq list (cdr list))) | 381 | (setq list (cdr list))) |
| 382 | (list (/ (1- c-year) 60) | 382 | (list (/ (1- c-year) 60) |
| 383 | (calendar-mod c-year 60) | 383 | ;; Remainder of c-year/60 with 60 instead of 0. |
| 384 | (1+ (mod (1- c-year) 60)) | ||
| 384 | (caar list) | 385 | (caar list) |
| 385 | (1+ (- date (cadr (car list))))))) | 386 | (1+ (- date (cadr (car list))))))) |
| 386 | 387 | ||
| @@ -420,7 +421,9 @@ Defaults to today's date if DATE is not given." | |||
| 420 | (next-month (calendar-absolute-from-chinese | 421 | (next-month (calendar-absolute-from-chinese |
| 421 | (list (if (= year 60) (1+ cycle) cycle) | 422 | (list (if (= year 60) (1+ cycle) cycle) |
| 422 | (if (= (floor month) 12) (1+ year) year) | 423 | (if (= (floor month) 12) (1+ year) year) |
| 423 | (calendar-mod (1+ (floor month)) 12) | 424 | ;; Remainder of (1+(floor month))/12, with |
| 425 | ;; 12 instead of 0. | ||
| 426 | (1+ (mod (floor month) 12)) | ||
| 424 | 1))) | 427 | 1))) |
| 425 | (m-cycle (% (+ (* year 5) (floor month)) 60))) | 428 | (m-cycle (% (+ (* year 5) (floor month)) 60))) |
| 426 | (format "Cycle %s, year %s (%s), %smonth %s%s, day %s (%s)" | 429 | (format "Cycle %s, year %s (%s), %smonth %s%s, day %s (%s)" |