From: Richard M. Stallman Date: Sun, 6 Apr 2003 20:21:26 +0000 (+0000) Subject: (cal-menu-update): Use easy-menu-create-menu rather than easy-menu-change. X-Git-Tag: ttn-vms-21-2-B4~10619 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d5b213cc0c6f31b09c2fcb8421154273bd778e62;p=emacs.git (cal-menu-update): Use easy-menu-create-menu rather than easy-menu-change. --- diff --git a/lisp/calendar/cal-menu.el b/lisp/calendar/cal-menu.el index cc7538133ba..b74eeed1a05 100644 --- a/lisp/calendar/cal-menu.el +++ b/lisp/calendar/cal-menu.el @@ -202,7 +202,8 @@ not available." (setq l (cons ["Mark Holidays" mark-calendar-holidays t] (cons ["Unmark Calendar" calendar-unmark t] (cons ["--" '("--") t] l)))) - (easy-menu-change nil "Holidays" (nreverse l)) + (define-key calendar-mode-map [menu-bar Holidays] + (cons "Holidays" (easy-menu-create-menu "Holidays" (nreverse l)))) (define-key calendar-mode-map [menu-bar Holidays separator] '("--")) (define-key calendar-mode-map [menu-bar Holidays today]