Mercurial > emacs
comparison lisp/calendar/cal-china.el @ 93844:bf9ef749c23e
Replace int-to-string with number-to-string.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Tue, 08 Apr 2008 07:07:17 +0000 |
parents | 3ff2b47de8f2 |
children | 5310823a757f |
comparison
equal
deleted
inserted
replaced
93843:61357badb5fa | 93844:bf9ef749c23e |
---|---|
535 (append | 535 (append |
536 (list (cons (format "%s (first)" (car l)) (car l)) | 536 (list (cons (format "%s (first)" (car l)) (car l)) |
537 (cons (format "%s (second)" (car l)) (cadr l))) | 537 (cons (format "%s (second)" (car l)) (cadr l))) |
538 (calendar-chinese-months-to-alist (cddr l))) | 538 (calendar-chinese-months-to-alist (cddr l))) |
539 (append | 539 (append |
540 (list (cons (int-to-string (car l)) (car l))) | 540 (list (cons (number-to-string (car l)) (car l))) |
541 (calendar-chinese-months-to-alist (cdr l)))) | 541 (calendar-chinese-months-to-alist (cdr l)))) |
542 (list (cons (int-to-string (car l)) (car l)))))) | 542 (list (cons (number-to-string (car l)) (car l)))))) |
543 | 543 |
544 (defun calendar-chinese-months (c y) | 544 (defun calendar-chinese-months (c y) |
545 "A list of the months in cycle C, year Y of the Chinese calendar." | 545 "A list of the months in cycle C, year Y of the Chinese calendar." |
546 (memq 1 (append | 546 (memq 1 (append |
547 (mapcar (lambda (x) | 547 (mapcar (lambda (x) |
567 (let* ((c (calendar-chinese-from-absolute | 567 (let* ((c (calendar-chinese-from-absolute |
568 (calendar-absolute-from-gregorian (calendar-current-date)))) | 568 (calendar-absolute-from-gregorian (calendar-current-date)))) |
569 (cycle (calendar-read | 569 (cycle (calendar-read |
570 "Chinese calendar cycle number (>44): " | 570 "Chinese calendar cycle number (>44): " |
571 (lambda (x) (> x 44)) | 571 (lambda (x) (> x 44)) |
572 (int-to-string (car c)))) | 572 (number-to-string (car c)))) |
573 (year (calendar-read | 573 (year (calendar-read |
574 "Year in Chinese cycle (1..60): " | 574 "Year in Chinese cycle (1..60): " |
575 (lambda (x) (and (<= 1 x) (<= x 60))) | 575 (lambda (x) (and (<= 1 x) (<= x 60))) |
576 (int-to-string (cadr c)))) | 576 (number-to-string (cadr c)))) |
577 (month-list (calendar-chinese-months-to-alist | 577 (month-list (calendar-chinese-months-to-alist |
578 (calendar-chinese-months cycle year))) | 578 (calendar-chinese-months cycle year))) |
579 (month (cdr (assoc | 579 (month (cdr (assoc |
580 (completing-read "Chinese calendar month: " | 580 (completing-read "Chinese calendar month: " |
581 month-list nil t) | 581 month-list nil t) |