aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2009-05-21 04:40:08 +0000
committerGlenn Morris2009-05-21 04:40:08 +0000
commitd5a8ed105306de407d9a3d7b55730e013ace47b6 (patch)
treecfdfb3e5a7d37d65b98fea8fa085930d16383fe5 /lisp
parent24d2266c2003adab99cb30587a353c4663af7ddf (diff)
downloademacs-d5a8ed105306de407d9a3d7b55730e013ace47b6.tar.gz
emacs-d5a8ed105306de407d9a3d7b55730e013ace47b6.zip
(calendar-forward-day): Fix 2008-06-21 change -
always move cursor to new date. (Bug#3338)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/calendar/cal-move.el9
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 108e28a5242..f0a62d93681 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-05-21 Glenn Morris <rgm@gnu.org>
2
3 * calendar/cal-move.el (calendar-forward-day): Fix 2008-06-21 change -
4 always move cursor to new date. (Bug#3338)
5
12009-05-20 Stefan Monnier <monnier@iro.umontreal.ca> 62009-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * textmodes/tex-mode.el (tex-uptodate-p): Accept [1{/var/foo}] as 8 * textmodes/tex-mode.el (tex-uptodate-p): Accept [1{/var/foo}] as
diff --git a/lisp/calendar/cal-move.el b/lisp/calendar/cal-move.el
index 749fe9f8c97..534e7c1ecc7 100644
--- a/lisp/calendar/cal-move.el
+++ b/lisp/calendar/cal-move.el
@@ -230,14 +230,15 @@ Moves backward if ARG is negative."
230 (+ (calendar-absolute-from-gregorian cursor-date) arg))) 230 (+ (calendar-absolute-from-gregorian cursor-date) arg)))
231 (new-display-month (calendar-extract-month new-cursor-date)) 231 (new-display-month (calendar-extract-month new-cursor-date))
232 (new-display-year (calendar-extract-year new-cursor-date))) 232 (new-display-year (calendar-extract-year new-cursor-date)))
233 ;; Put the new month on the screen, if needed, and go to the new date. 233 ;; Put the new month on the screen, if needed.
234 (if (calendar-date-is-visible-p new-cursor-date) 234 (unless (calendar-date-is-visible-p new-cursor-date)
235 (calendar-cursor-to-visible-date new-cursor-date)
236 ;; The next line gives smoother scrolling IMO (one month at a 235 ;; The next line gives smoother scrolling IMO (one month at a
237 ;; time rather than two). 236 ;; time rather than two).
238 (calendar-increment-month new-display-month new-display-year 237 (calendar-increment-month new-display-month new-display-year
239 (if (< arg 0) 1 -1)) 238 (if (< arg 0) 1 -1))
240 (calendar-other-month new-display-month new-display-year)))) 239 (calendar-other-month new-display-month new-display-year))
240 ;; Go to the new date.
241 (calendar-cursor-to-visible-date new-cursor-date)))
241 (run-hooks 'calendar-move-hook)) 242 (run-hooks 'calendar-move-hook))
242 243
243;;;###cal-autoload 244;;;###cal-autoload