Mercurial > emacs
changeset 22031:879df83433a1
Minor fix to earlier changes today.
author | Edward M. Reingold <reingold@emr.cs.iit.edu> |
---|---|
date | Mon, 11 May 1998 17:18:04 +0000 |
parents | 484c9b2f6308 |
children | e27e9e844efe |
files | lisp/calendar/cal-menu.el |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/calendar/cal-menu.el Mon May 11 16:36:02 1998 +0000 +++ b/lisp/calendar/cal-menu.el Mon May 11 17:18:04 1998 +0000 @@ -195,6 +195,10 @@ (setq l (cons ["Mark Holidays" mark-calendar-holidays t] (cons ["Unmark Calendar" calendar-unmark t] l))) (easy-menu-change nil "holidays" (nreverse l)) + (define-key calendar-mode-map [menu-bar holidays today] + `(,(format "For Today (%s)" + (calendar-date-string (calendar-current-date) t t)) + . cal-menu-today-holidays)) (let ((title (let ((m1 displayed-month) (y1 displayed-year) @@ -212,7 +216,7 @@ y1 (calendar-month-name m2 3) y2))))) - (define-key calendar-mode-map [menu-bar holidays 3-day] + (define-key calendar-mode-map [menu-bar holidays 3-month] `(,(format "For Current Window (%s)" title) . list-calendar-holidays))) (let ((date (calendar-cursor-to-date))) @@ -266,6 +270,13 @@ (calendar-mouse-goto-date (calendar-event-to-date)) (calendar-sunrise-sunset))) +(defun cal-menu-today-holidays () + "Show holidays for today's date." + (interactive) + (save-excursion + (calendar-cursor-to-date (calendar-current-date)) + (calendar-cursor-holidays))) + (defun calendar-mouse-holidays () "Show holidays for mouse-selected date." (interactive)