diff options
| author | Stefan Monnier | 2007-07-27 06:28:39 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-07-27 06:28:39 +0000 |
| commit | 0581e7e7d01052e79bde49605682daf08111f1f6 (patch) | |
| tree | c3ce608d24d57c6d71430850ee83374607c961e5 | |
| parent | ab8950895b46b8435c88c8767faa878af111cb6c (diff) | |
| download | emacs-0581e7e7d01052e79bde49605682daf08111f1f6.tar.gz emacs-0581e7e7d01052e79bde49605682daf08111f1f6.zip | |
(calendar-mode-map): Use new calendar-scroll-* names.
(mouse-scroll-calendar-left, mouse-scroll-calendar-right): Remove.
Use calendar-scroll-* directly instead.
| -rw-r--r-- | lisp/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/calendar/calendar.el | 46 |
2 files changed, 24 insertions, 38 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2a81d3da737..09b584a9497 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,11 +1,5 @@ | |||
| 1 | 2007-07-27 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-07-27 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * calendar/cal-move.el (calendar-scroll-left, calendar-scroll-right): | ||
| 4 | Behave like mouse-scroll-calendar-* when used from the mouse. | ||
| 5 | |||
| 6 | * calendar/cal-menu.el (cal-menu-scroll-menu) | ||
| 7 | (cal-menu-global-mouse-menu): Use new names. | ||
| 8 | |||
| 9 | * calendar/cal-move.el (calendar-scroll-left, calendar-scroll-right) | 3 | * calendar/cal-move.el (calendar-scroll-left, calendar-scroll-right) |
| 10 | (calendar-scroll-left-three-months) | 4 | (calendar-scroll-left-three-months) |
| 11 | (calendar-scroll-right-three-months): Clean up namespace. | 5 | (calendar-scroll-right-three-months): Clean up namespace. |
| @@ -13,6 +7,16 @@ | |||
| 13 | (scroll-calendar-left-three-months) | 7 | (scroll-calendar-left-three-months) |
| 14 | (scroll-calendar-right-three-months): Add compatibility aliases. | 8 | (scroll-calendar-right-three-months): Add compatibility aliases. |
| 15 | 9 | ||
| 10 | * calendar/cal-move.el (calendar-scroll-left, calendar-scroll-right): | ||
| 11 | Behave like mouse-scroll-calendar-* when used from the mouse. | ||
| 12 | |||
| 13 | * calendar/cal-menu.el (cal-menu-scroll-menu) | ||
| 14 | (cal-menu-global-mouse-menu): | ||
| 15 | * calendar/calendar.el (calendar-mode-map): | ||
| 16 | Use new calendar-scroll-* names. | ||
| 17 | (mouse-scroll-calendar-left, mouse-scroll-calendar-right): | ||
| 18 | Remove. Use calendar-scroll-* directly instead. | ||
| 19 | |||
| 16 | 2007-07-26 Stefan Monnier <monnier@iro.umontreal.ca> | 20 | 2007-07-26 Stefan Monnier <monnier@iro.umontreal.ca> |
| 17 | 21 | ||
| 18 | * emacs-lisp/advice.el (ad-interactive-p, ad-interactive-form): Remove. | 22 | * emacs-lisp/advice.el (ad-interactive-p, ad-interactive-form): Remove. |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index c8c27703f8e..789a10d1f5e 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -1493,19 +1493,19 @@ return negative results." | |||
| 1493 | "Move the cursor backward ARG years." | 1493 | "Move the cursor backward ARG years." |
| 1494 | t) | 1494 | t) |
| 1495 | 1495 | ||
| 1496 | (autoload 'scroll-calendar-left "cal-move" | 1496 | (autoload 'calendar-scroll-left "cal-move" |
| 1497 | "Scroll the displayed calendar left by ARG months." | 1497 | "Scroll the displayed calendar left by ARG months." |
| 1498 | t) | 1498 | t) |
| 1499 | 1499 | ||
| 1500 | (autoload 'scroll-calendar-right "cal-move" | 1500 | (autoload 'calendar-scroll-right "cal-move" |
| 1501 | "Scroll the displayed calendar window right by ARG months." | 1501 | "Scroll the displayed calendar window right by ARG months." |
| 1502 | t) | 1502 | t) |
| 1503 | 1503 | ||
| 1504 | (autoload 'scroll-calendar-left-three-months "cal-move" | 1504 | (autoload 'calendar-scroll-left-three-months "cal-move" |
| 1505 | "Scroll the displayed calendar window left by 3*ARG months." | 1505 | "Scroll the displayed calendar window left by 3*ARG months." |
| 1506 | t) | 1506 | t) |
| 1507 | 1507 | ||
| 1508 | (autoload 'scroll-calendar-right-three-months "cal-move" | 1508 | (autoload 'calendar-scroll-right-three-months "cal-move" |
| 1509 | "Scroll the displayed calendar window right by 3*ARG months." | 1509 | "Scroll the displayed calendar window right by 3*ARG months." |
| 1510 | t) | 1510 | t) |
| 1511 | 1511 | ||
| @@ -2224,14 +2224,14 @@ movement commands will not work correctly." | |||
| 2224 | downcase-region upcase-region kill-region | 2224 | downcase-region upcase-region kill-region |
| 2225 | copy-region-as-kill capitalize-region write-region)) | 2225 | copy-region-as-kill capitalize-region write-region)) |
| 2226 | (define-key map (vector 'remap c) 'calendar-not-implemented)) | 2226 | (define-key map (vector 'remap c) 'calendar-not-implemented)) |
| 2227 | (define-key map "<" 'scroll-calendar-right) | 2227 | (define-key map "<" 'calendar-scroll-right) |
| 2228 | (define-key map "\C-x<" 'scroll-calendar-right) | 2228 | (define-key map "\C-x<" 'calendar-scroll-right) |
| 2229 | (define-key map [prior] 'scroll-calendar-right-three-months) | 2229 | (define-key map [prior] 'calendar-scroll-right-three-months) |
| 2230 | (define-key map "\ev" 'scroll-calendar-right-three-months) | 2230 | (define-key map "\ev" 'calendar-scroll-right-three-months) |
| 2231 | (define-key map ">" 'scroll-calendar-left) | 2231 | (define-key map ">" 'calendar-scroll-left) |
| 2232 | (define-key map "\C-x>" 'scroll-calendar-left) | 2232 | (define-key map "\C-x>" 'calendar-scroll-left) |
| 2233 | (define-key map [next] 'scroll-calendar-left-three-months) | 2233 | (define-key map [next] 'calendar-scroll-left-three-months) |
| 2234 | (define-key map "\C-v" 'scroll-calendar-left-three-months) | 2234 | (define-key map "\C-v" 'calendar-scroll-left-three-months) |
| 2235 | (define-key map "\C-b" 'calendar-backward-day) | 2235 | (define-key map "\C-b" 'calendar-backward-day) |
| 2236 | (define-key map "\C-p" 'calendar-backward-week) | 2236 | (define-key map "\C-p" 'calendar-backward-week) |
| 2237 | (define-key map "\e{" 'calendar-backward-month) | 2237 | (define-key map "\e{" 'calendar-backward-month) |
| @@ -2383,7 +2383,7 @@ movement commands will not work correctly." | |||
| 2383 | 'help-echo "mouse-1: previous month" | 2383 | 'help-echo "mouse-1: previous month" |
| 2384 | 'mouse-face 'mode-line-highlight | 2384 | 'mouse-face 'mode-line-highlight |
| 2385 | 'keymap (make-mode-line-mouse-map 'mouse-1 | 2385 | 'keymap (make-mode-line-mouse-map 'mouse-1 |
| 2386 | 'mouse-scroll-calendar-right)) | 2386 | 'calendar-scroll-right)) |
| 2387 | "Calendar" | 2387 | "Calendar" |
| 2388 | (concat | 2388 | (concat |
| 2389 | (propertize | 2389 | (propertize |
| @@ -2412,7 +2412,7 @@ movement commands will not work correctly." | |||
| 2412 | 'help-echo "mouse-1: next month" | 2412 | 'help-echo "mouse-1: next month" |
| 2413 | 'mouse-face 'mode-line-highlight | 2413 | 'mouse-face 'mode-line-highlight |
| 2414 | 'keymap (make-mode-line-mouse-map | 2414 | 'keymap (make-mode-line-mouse-map |
| 2415 | 'mouse-1 'mouse-scroll-calendar-left))) | 2415 | 'mouse-1 'calendar-scroll-left))) |
| 2416 | "The mode line of the calendar buffer. | 2416 | "The mode line of the calendar buffer. |
| 2417 | 2417 | ||
| 2418 | This must be a list of items that evaluate to strings--those strings are | 2418 | This must be a list of items that evaluate to strings--those strings are |
| @@ -2439,24 +2439,6 @@ under the cursor: | |||
| 2439 | (extract-calendar-year iso-date))) | 2439 | (extract-calendar-year iso-date))) |
| 2440 | \"\"))") | 2440 | \"\"))") |
| 2441 | 2441 | ||
| 2442 | (defun mouse-scroll-calendar-left (event) | ||
| 2443 | "Scroll the displayed calendar left by one month. | ||
| 2444 | Maintains the relative position of the cursor | ||
| 2445 | with respect to the calendar as well as possible." | ||
| 2446 | (interactive "e") | ||
| 2447 | (save-selected-window | ||
| 2448 | (select-window (posn-window (event-start event))) | ||
| 2449 | (scroll-calendar-left 1))) | ||
| 2450 | |||
| 2451 | (defun mouse-scroll-calendar-right (event) | ||
| 2452 | "Scroll the displayed calendar right by one month. | ||
| 2453 | Maintains the relative position of the cursor | ||
| 2454 | with respect to the calendar as well as possible." | ||
| 2455 | (interactive "e") | ||
| 2456 | (save-selected-window | ||
| 2457 | (select-window (posn-window (event-start event))) | ||
| 2458 | (scroll-calendar-right 1))) | ||
| 2459 | |||
| 2460 | (defun mouse-calendar-other-month (event) | 2442 | (defun mouse-calendar-other-month (event) |
| 2461 | "Display a three-month calendar centered around a specified month and year." | 2443 | "Display a three-month calendar centered around a specified month and year." |
| 2462 | (interactive "e") | 2444 | (interactive "e") |