summaryrefslogtreecommitdiff
path: root/lisp/calendar/calendar.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-08-09 14:21:12 +0000
committerGerd Moellmann <gerd@gnu.org>2001-08-09 14:21:12 +0000
commitd0b56ec54a2d80fac2a65e6ebb422f90aa604201 (patch)
tree250cc5360e8ccd22b044f845fe704dd626bc3233 /lisp/calendar/calendar.el
parent1ebfdece8ed7f1af57ff2c4833cf4fc320fb2058 (diff)
downloademacs-d0b56ec54a2d80fac2a65e6ebb422f90aa604201.tar.gz
(calendar-mode-line-format): Use
make-mode-line-mouse-map instead of make-mode-line-mouse2-map.
Diffstat (limited to 'lisp/calendar/calendar.el')
-rw-r--r--lisp/calendar/calendar.el20
1 files changed, 12 insertions, 8 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 29a23d45865..3b22409e444 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -2040,34 +2040,38 @@ the inserted text. Value is always t."
(propertize (substitute-command-keys
"\\<calendar-mode-map>\\[scroll-calendar-left]")
'help-echo "mouse-2: scroll left"
- 'keymap (make-mode-line-mouse2-map #'scroll-calendar-left))
+ 'keymap (make-mode-line-mouse-map 'mouse-2
+ #'scroll-calendar-left))
"Calendar"
(concat
(propertize
(substitute-command-keys
"\\<calendar-mode-map>\\[calendar-goto-info-node] info")
'help-echo "mouse-2: read Info on Calendar"
- 'keymap (make-mode-line-mouse2-map #'calendar-goto-info-node))
+ 'keymap (make-mode-line-mouse-map 'mouse-2 #'calendar-goto-info-node))
"/"
(propertize
(substitute-command-keys
"\\<calendar-mode-map>\\[calendar-other-month] other")
'help-echo "mouse-2: choose another month"
- 'keymap (make-mode-line-mouse2-map (lambda ()
- (interactive)
- (call-interactively
- 'calendar-other-month))))
+ 'keymap (make-mode-line-mouse-map
+ 'mouse-2
+ (lambda ()
+ (interactive)
+ (call-interactively
+ 'calendar-other-month))))
"/"
(propertize
(substitute-command-keys
"\\<calendar-mode-map>\\[calendar-goto-today] today")
'help-echo "mouse-2: go to today's date"
- 'keymap (make-mode-line-mouse2-map #'calendar-goto-today)))
+ 'keymap (make-mode-line-mouse-map 'mouse-2 #'calendar-goto-today)))
'(calendar-date-string (calendar-current-date) t)
(propertize (substitute-command-keys
"\\<calendar-mode-map>\\[scroll-calendar-right]")
'help-echo "mouse-2: scroll right"
- 'keymap (make-mode-line-mouse2-map #'scroll-calendar-right)))
+ 'keymap (make-mode-line-mouse-map
+ 'mouse-2 #'scroll-calendar-right)))
"The mode line of the calendar buffer.")
(defun calendar-goto-info-node ()