Mercurial > emacs
comparison lisp/calendar/cal-china.el @ 92614:52850e6ad92b
Comment.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 08 Mar 2008 04:26:44 +0000 |
parents | 8ddfb879916b |
children | b3055031d5ea |
comparison
equal
deleted
inserted
replaced
92613:28583a8ab749 | 92614:52850e6ad92b |
---|---|
43 ;; ``Calendrical Calculations: The Millennium Edition'' by Edward M. Reingold | 43 ;; ``Calendrical Calculations: The Millennium Edition'' by Edward M. Reingold |
44 ;; and Nachum Dershowitz, Cambridge University Press (2001). | 44 ;; and Nachum Dershowitz, Cambridge University Press (2001). |
45 | 45 |
46 ;;; Code: | 46 ;;; Code: |
47 | 47 |
48 (defvar date) | |
49 (defvar displayed-month) | 48 (defvar displayed-month) |
50 (defvar displayed-year) | 49 (defvar displayed-year) |
51 | 50 |
52 (require 'lunar) | 51 (require 'lunar) |
53 | 52 |
500 (append | 499 (append |
501 (list (cons (int-to-string (car l)) (car l))) | 500 (list (cons (int-to-string (car l)) (car l))) |
502 (make-chinese-month-assoc-list (cdr l)))) | 501 (make-chinese-month-assoc-list (cdr l)))) |
503 (list (cons (int-to-string (car l)) (car l)))))) | 502 (list (cons (int-to-string (car l)) (car l)))))) |
504 | 503 |
504 (defvar date) | |
505 | |
506 ;; To be called from list-sexp-diary-entries, where DATE is bound. | |
505 (defun diary-chinese-date () | 507 (defun diary-chinese-date () |
506 "Chinese calendar equivalent of date diary entry." | 508 "Chinese calendar equivalent of date diary entry." |
507 (format "Chinese date: %s" (calendar-chinese-date-string date))) | 509 (format "Chinese date: %s" (calendar-chinese-date-string date))) |
508 | 510 |
509 (provide 'cal-china) | 511 (provide 'cal-china) |