aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-09-22 07:37:58 +0000
committerGlenn Morris2009-09-22 07:37:58 +0000
commitdaedbbc2a90ab02f0e1cfcb3532d78b0f6907055 (patch)
tree5df70b2e898f2887bd388196c9fc29298e760753
parentd8899a74164722c9f6f04f095b32def2932c261b (diff)
downloademacs-daedbbc2a90ab02f0e1cfcb3532d78b0f6907055.tar.gz
emacs-daedbbc2a90ab02f0e1cfcb3532d78b0f6907055.zip
(calendar-mode-map): Make mouse-1 and 3 clicks on the scroll-bar
scroll the calendar window rather than the buffer.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/calendar/calendar.el8
2 files changed, 11 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a4548a9dae5..880dd09a6c9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12009-09-22 Glenn Morris <rgm@gnu.org> 12009-09-22 Glenn Morris <rgm@gnu.org>
2 2
3 * calendar/calendar.el (calendar-mode-map): Make mouse-1 and 3 clicks on
4 the scroll-bar scroll the calendar window rather than the buffer.
5
3 * calendar/cal-menu.el (cal-menu-scroll-menu): Add a sub-section with 6 * calendar/cal-menu.el (cal-menu-scroll-menu): Add a sub-section with
4 commands that move point (as opposed to scrolling). 7 commands that move point (as opposed to scrolling).
5 8
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 2140e538492..2617c8004b7 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -1594,6 +1594,14 @@ line."
1594 (define-key map [down-mouse-2] 1594 (define-key map [down-mouse-2]
1595 (easy-menu-binding cal-menu-global-mouse-menu)) 1595 (easy-menu-binding cal-menu-global-mouse-menu))
1596 1596
1597 ;; Left-click moves us forward in time, right-click backwards.
1598 ;; cf scroll-bar.el.
1599 (define-key map [vertical-scroll-bar mouse-1] 'calendar-scroll-left)
1600 (define-key map [vertical-scroll-bar drag-mouse-1] 'calendar-scroll-left)
1601 ;; down-mouse-2 stays as scroll-bar-drag.
1602 (define-key map [vertical-scroll-bar mouse-3] 'calendar-scroll-right)
1603 (define-key map [vertical-scroll-bar drag-mouse-3] 'calendar-scroll-right)
1604
1597 map) 1605 map)
1598 "Keymap for `calendar-mode'.") 1606 "Keymap for `calendar-mode'.")
1599 1607