changeset 50465:6fc90e779714

(cal-menu-update): Use easy-menu-create-menu rather than easy-menu-change.
author Richard M. Stallman <rms@gnu.org>
date Sun, 06 Apr 2003 20:21:26 +0000
parents 5f5babd538ab
children e4180f608731
files lisp/calendar/cal-menu.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/cal-menu.el	Sun Apr 06 20:17:43 2003 +0000
+++ b/lisp/calendar/cal-menu.el	Sun Apr 06 20:21:26 2003 +0000
@@ -202,7 +202,8 @@
             (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]