Mercurial > emacs
changeset 13063:30ee606ce331
Fix display of Chinese date.
author | Edward M. Reingold <reingold@emr.cs.iit.edu> |
---|---|
date | Fri, 22 Sep 1995 19:36:26 +0000 |
parents | d483d9923c33 |
children | fac71043649d |
files | lisp/calendar/cal-menu.el |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/calendar/cal-menu.el Fri Sep 22 02:48:04 1995 +0000 +++ b/lisp/calendar/cal-menu.el Fri Sep 22 19:36:26 1995 +0000 @@ -300,7 +300,7 @@ ; (list (format "Chinese date: %s" (calendar-chinese-date-string date)))) ; so instead, (list '("Chinese date (select to echo Chinese date)" - . calendar-print-chinese-date)) + . calendar-mouse-chinese-date)) (let ((c (calendar-coptic-date-string date))) (if (not (string-equal c "")) (list (list (format "Coptic date: %s" c))))) @@ -316,6 +316,12 @@ (calendar-mayan-date-string date))))))))) (and selection (call-interactively selection)))) +(defun calendar-mouse-chinese-date () + "Show Chinese equivalent for mouse-selected date." + (interactive) + (save-excursion + (calendar-goto-date (calendar-event-to-date)) + (calendar-print-chinese-date))) (defun calendar-mouse-2-date-menu (event) "Pop up menu for Mouse-2 for selected date in the calendar window."