aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/calendar/calendar.el
diff options
context:
space:
mode:
authorEdward M. Reingold <[email protected]>1998-05-11 14:56:37 +0000
committerEdward M. Reingold <[email protected]>1998-05-11 14:56:37 +0000
commitb5305eb0516c217caba18b37ff8c993acaa7cfc0 (patch)
treef9b32ee66027b066c40b1e21f6a424877475cd0e /lisp/calendar/calendar.el
parent0516edee5f13a1589df2aa2e316e6f4e9ab5f36c (diff)
Made holiday button on menu bar related to current calendar display.
Diffstat (limited to 'lisp/calendar/calendar.el')
-rw-r--r--lisp/calendar/calendar.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 821748ad4e..65e2ace68f 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -2025,6 +2025,8 @@ For a complete description, type \
(setq buffer-read-only t)
(setq indent-tabs-mode nil)
(update-calendar-mode-line)
+ (make-local-hook 'activate-menubar-hook)
+ (add-hook 'activate-menubar-hook 'cal-menu-update nil t)
(make-local-variable 'calendar-mark-ring)
(make-local-variable 'displayed-month);; Month in middle of window.
(make-local-variable 'displayed-year));; Year in middle of window.