aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-10-01 11:05:18 +0000
committerEli Zaretskii2001-10-01 11:05:18 +0000
commitd24f1b150a30807e3fdc457c628b8e972815fa92 (patch)
tree6f1b6789d3fc6e0f19b1ce9f9759b9a2c7d4b61b
parent257e3f57f8635ef5cf772a69df8b74f78fef8a02 (diff)
downloademacs-d24f1b150a30807e3fdc457c628b8e972815fa92.tar.gz
emacs-d24f1b150a30807e3fdc457c628b8e972815fa92.zip
(calendar-mode-map): Require cal-menu unconditionally.
(calendar-mode): Set up activate-menubar-hook unconditionally.
-rw-r--r--lisp/calendar/calendar.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 3b22409e444..dda6cf95e67 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -1900,7 +1900,7 @@ the inserted text. Value is always t."
1900(if calendar-mode-map 1900(if calendar-mode-map
1901 nil 1901 nil
1902 (setq calendar-mode-map (make-sparse-keymap)) 1902 (setq calendar-mode-map (make-sparse-keymap))
1903 (if (display-popup-menus-p) (require 'cal-menu)) 1903 (require 'cal-menu)
1904 (calendar-for-loop i from 0 to 9 do 1904 (calendar-for-loop i from 0 to 9 do
1905 (define-key calendar-mode-map (int-to-string i) 'digit-argument)) 1905 (define-key calendar-mode-map (int-to-string i) 'digit-argument))
1906 (let ((l (list 'narrow-to-region 'mark-word 'mark-sexp 'mark-paragraph 1906 (let ((l (list 'narrow-to-region 'mark-word 'mark-sexp 'mark-paragraph
@@ -2101,10 +2101,8 @@ For a complete description, type \
2101 (setq buffer-read-only t) 2101 (setq buffer-read-only t)
2102 (setq indent-tabs-mode nil) 2102 (setq indent-tabs-mode nil)
2103 (update-calendar-mode-line) 2103 (update-calendar-mode-line)
2104 (if (display-popup-menus-p) 2104 (make-local-hook 'activate-menubar-hook)
2105 (progn 2105 (add-hook 'activate-menubar-hook 'cal-menu-update nil t)
2106 (make-local-hook 'activate-menubar-hook)
2107 (add-hook 'activate-menubar-hook 'cal-menu-update nil t)))
2108 (make-local-variable 'calendar-mark-ring) 2106 (make-local-variable 'calendar-mark-ring)
2109 (make-local-variable 'displayed-month);; Month in middle of window. 2107 (make-local-variable 'displayed-month);; Month in middle of window.
2110 (make-local-variable 'displayed-year));; Year in middle of window. 2108 (make-local-variable 'displayed-year));; Year in middle of window.