aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-07-27 06:13:26 +0000
committerStefan Monnier2007-07-27 06:13:26 +0000
commitab42e29d9970ba7d030f5253809102a9b271e10e (patch)
tree7c7d4137e84ae248f3dbdf1e5878ea4b586668bd
parentd466e9fc4116b365650f068998ba07d8c8fd36fb (diff)
downloademacs-ab42e29d9970ba7d030f5253809102a9b271e10e.tar.gz
emacs-ab42e29d9970ba7d030f5253809102a9b271e10e.zip
(calendar-scroll-left, calendar-scroll-right, calendar-scroll-left-three-months)
(calendar-scroll-right-three-months): Clean up namespace. (scroll-calendar-left, scroll-calendar-right, scroll-calendar-left-three-months) (scroll-calendar-right-three-months): Add compatibility aliases.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/calendar/cal-move.el26
2 files changed, 27 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 378d0c3fe22..a8e9dac3f5e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12007-07-27 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * calendar/cal-move.el (calendar-scroll-left, calendar-scroll-right)
4 (calendar-scroll-left-three-months)
5 (calendar-scroll-right-three-months): Clean up namespace.
6 (scroll-calendar-left, scroll-calendar-right)
7 (scroll-calendar-left-three-months)
8 (scroll-calendar-right-three-months): Add compatibility aliases.
9
12007-07-26 Stefan Monnier <monnier@iro.umontreal.ca> 102007-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
2 11
3 * emacs-lisp/advice.el (ad-interactive-p, ad-interactive-form): Remove. 12 * emacs-lisp/advice.el (ad-interactive-p, ad-interactive-form): Remove.
diff --git a/lisp/calendar/cal-move.el b/lisp/calendar/cal-move.el
index 02760b34e93..87f577ccb28 100644
--- a/lisp/calendar/cal-move.el
+++ b/lisp/calendar/cal-move.el
@@ -85,7 +85,7 @@ Movement is forward is ARG is negative."
85 (interactive "p") 85 (interactive "p")
86 (calendar-forward-month (* -12 arg))) 86 (calendar-forward-month (* -12 arg)))
87 87
88(defun scroll-calendar-left (&optional arg) 88(defun calendar-scroll-left (&optional arg)
89 "Scroll the displayed calendar left by ARG months. 89 "Scroll the displayed calendar left by ARG months.
90If ARG is negative the calendar is scrolled right. Maintains the relative 90If ARG is negative the calendar is scrolled right. Maintains the relative
91position of the cursor with respect to the calendar as well as possible." 91position of the cursor with respect to the calendar as well as possible."
@@ -106,26 +106,26 @@ position of the cursor with respect to the calendar as well as possible."
106 (t (list month 1 year))))))) 106 (t (list month 1 year)))))))
107 (run-hooks 'calendar-move-hook)) 107 (run-hooks 'calendar-move-hook))
108 108
109(defun scroll-calendar-right (&optional arg) 109(defun calendar-scroll-right (&optional arg)
110 "Scroll the displayed calendar window right by ARG months. 110 "Scroll the displayed calendar window right by ARG months.
111If ARG is negative the calendar is scrolled left. Maintains the relative 111If ARG is negative the calendar is scrolled left. Maintains the relative
112position of the cursor with respect to the calendar as well as possible." 112position of the cursor with respect to the calendar as well as possible."
113 (interactive "p") 113 (interactive "p")
114 (scroll-calendar-left (- (or arg 1)))) 114 (calendar-scroll-left (- (or arg 1))))
115 115
116(defun scroll-calendar-left-three-months (arg) 116(defun calendar-scroll-left-three-months (arg)
117 "Scroll the displayed calendar window left by 3*ARG months. 117 "Scroll the displayed calendar window left by 3*ARG months.
118If ARG is negative the calendar is scrolled right. Maintains the relative 118If ARG is negative the calendar is scrolled right. Maintains the relative
119position of the cursor with respect to the calendar as well as possible." 119position of the cursor with respect to the calendar as well as possible."
120 (interactive "p") 120 (interactive "p")
121 (scroll-calendar-left (* 3 arg))) 121 (calendar-scroll-left (* 3 arg)))
122 122
123(defun scroll-calendar-right-three-months (arg) 123(defun calendar-scroll-right-three-months (arg)
124 "Scroll the displayed calendar window right by 3*ARG months. 124 "Scroll the displayed calendar window right by 3*ARG months.
125If ARG is negative the calendar is scrolled left. Maintains the relative 125If ARG is negative the calendar is scrolled left. Maintains the relative
126position of the cursor with respect to the calendar as well as possible." 126position of the cursor with respect to the calendar as well as possible."
127 (interactive "p") 127 (interactive "p")
128 (scroll-calendar-left (* -3 arg))) 128 (calendar-scroll-left (* -3 arg)))
129 129
130(defun calendar-cursor-to-nearest-date () 130(defun calendar-cursor-to-nearest-date ()
131 "Move the cursor to the closest date. 131 "Move the cursor to the closest date.
@@ -345,7 +345,17 @@ Negative DAY counts backward from end of year."
345 (+ 1 day (calendar-absolute-from-gregorian (list 12 31 year)))))) 345 (+ 1 day (calendar-absolute-from-gregorian (list 12 31 year))))))
346 (or noecho (calendar-print-day-of-year))) 346 (or noecho (calendar-print-day-of-year)))
347 347
348;; Backward compatibility.
349(define-obsolete-function-alias
350 'scroll-calendar-left 'calendar-scroll-left "23.1")
351(define-obsolete-function-alias
352 'scroll-calendar-right 'calendar-scroll-right "23.1")
353(define-obsolete-function-alias
354 'scroll-calendar-left-three-months 'calendar-scroll-left-three-months "23.1")
355(define-obsolete-function-alias
356 'scroll-calendar-right-three-months 'calendar-scroll-right-three-months "23.1")
357
348(provide 'cal-move) 358(provide 'cal-move)
349 359
350;;; arch-tag: d0883c46-7e16-4914-8ff8-8f67e699b781 360;; arch-tag: d0883c46-7e16-4914-8ff8-8f67e699b781
351;;; cal-move.el ends here 361;;; cal-move.el ends here