From: Gerd Moellmann Date: Wed, 3 Nov 1999 15:08:53 +0000 (+0000) Subject: (redraw-calendar): Move to nearest date before X-Git-Tag: emacs-pretest-21.0.90~6190 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d172e3e45a6a72e401583a135f37eb3e85c75fb9;p=emacs.git (redraw-calendar): Move to nearest date before redrawing. --- diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 9061cdba76e..8a9459c4231 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el @@ -1860,7 +1860,7 @@ the inserted text. Value is always t." (defun redraw-calendar () "Redraw the calendar display." (interactive) - (let ((cursor-date (calendar-cursor-to-date))) + (let ((cursor-date (calendar-cursor-to-nearest-date))) (generate-calendar-window displayed-month displayed-year) (calendar-cursor-to-visible-date cursor-date)))