aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-01-10 22:01:32 +0000
committerGlenn Morris2009-01-10 22:01:32 +0000
commit3309a9ee3f196146ecc1651da0bf1d3449a48411 (patch)
tree0cd2140178852b5de2f97991acc6067928a8e69c
parentdc67263ca39f129d07485b3da3a4b9b6c5b2c93f (diff)
downloademacs-3309a9ee3f196146ecc1651da0bf1d3449a48411.tar.gz
emacs-3309a9ee3f196146ecc1651da0bf1d3449a48411.zip
(calendar-scroll-left-three-months, calendar-scroll-right-three-months):
Add event handling, for when called from menus with the calendar buffer not current.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/calendar/cal-move.el20
2 files changed, 22 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a94006499ad..519ca5d847f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12009-01-10 Glenn Morris <rgm@gnu.org>
2
3 * calendar/cal-move.el (calendar-scroll-left-three-months)
4 (calendar-scroll-right-three-months):
5 * calendar/holidays.el (calendar-list-holidays)
6 (calendar-mark-holidays):
7 * calendar/lunar.el (calendar-lunar-phases):
8 Add event handling, for when called from menus with the calendar buffer
9 not current.
10
12009-01-10 Dan Nicolaescu <dann@ics.uci.edu> 112009-01-10 Dan Nicolaescu <dann@ics.uci.edu>
2 12
3 * diff-mode.el (diff-show-trailing-whitespaces): Remove function. 13 * diff-mode.el (diff-show-trailing-whitespaces): Remove function.
diff --git a/lisp/calendar/cal-move.el b/lisp/calendar/cal-move.el
index e262bd0b77b..749fe9f8c97 100644
--- a/lisp/calendar/cal-move.el
+++ b/lisp/calendar/cal-move.el
@@ -190,23 +190,27 @@ EVENT is an event like `last-nonmenu-event'."
190 'scroll-calendar-right 'calendar-scroll-right "23.1") 190 'scroll-calendar-right 'calendar-scroll-right "23.1")
191 191
192;;;###cal-autoload 192;;;###cal-autoload
193(defun calendar-scroll-left-three-months (arg) 193(defun calendar-scroll-left-three-months (arg &optional event)
194 "Scroll the displayed calendar window left by 3*ARG months. 194 "Scroll the displayed calendar window left by 3*ARG months.
195If ARG is negative the calendar is scrolled right. Maintains the relative 195If ARG is negative the calendar is scrolled right. Maintains the relative
196position of the cursor with respect to the calendar as well as possible." 196position of the cursor with respect to the calendar as well as possible.
197 (interactive "p") 197EVENT is an event like `last-nonmenu-event'."
198 (calendar-scroll-left (* 3 arg))) 198 (interactive (list (prefix-numeric-value current-prefix-arg)
199 last-nonmenu-event))
200 (calendar-scroll-left (* 3 arg) event))
199 201
200(define-obsolete-function-alias 'scroll-calendar-left-three-months 202(define-obsolete-function-alias 'scroll-calendar-left-three-months
201 'calendar-scroll-left-three-months "23.1") 203 'calendar-scroll-left-three-months "23.1")
202 204
203;;;###cal-autoload 205;;;###cal-autoload
204(defun calendar-scroll-right-three-months (arg) 206(defun calendar-scroll-right-three-months (arg &optional event)
205 "Scroll the displayed calendar window right by 3*ARG months. 207 "Scroll the displayed calendar window right by 3*ARG months.
206If ARG is negative the calendar is scrolled left. Maintains the relative 208If ARG is negative the calendar is scrolled left. Maintains the relative
207position of the cursor with respect to the calendar as well as possible." 209position of the cursor with respect to the calendar as well as possible.
208 (interactive "p") 210EVENT is an event like `last-nonmenu-event'."
209 (calendar-scroll-left (* -3 arg))) 211 (interactive (list (prefix-numeric-value current-prefix-arg)
212 last-nonmenu-event))
213 (calendar-scroll-left (* -3 arg) event))
210 214
211(define-obsolete-function-alias 'scroll-calendar-right-three-months 215(define-obsolete-function-alias 'scroll-calendar-right-three-months
212 'calendar-scroll-right-three-months "23.1") 216 'calendar-scroll-right-three-months "23.1")