]> git.eshelyaron.com Git - emacs.git/commitdiff
(cal-menu-update): Use easy-menu-create-menu rather than easy-menu-change.
authorRichard M. Stallman <rms@gnu.org>
Sun, 6 Apr 2003 20:21:26 +0000 (20:21 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 6 Apr 2003 20:21:26 +0000 (20:21 +0000)
lisp/calendar/cal-menu.el

index cc7538133ba1c28981fee839b8b9dc7467334bea..b74eeed1a05ff10d58faca73cad7e8be5b0870f4 100644 (file)
@@ -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]