Mercurial > emacs
comparison lisp/calendar/calendar.el @ 60649:3a754b1548d3
(calendar-redrawing): Delete.
(redraw-calendar): Do not bind calendar-redrawing.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 16 Mar 2005 13:23:09 +0000 |
parents | e2cd8a11381a |
children | 4e6ed80c0af2 30ad2795fdab |
comparison
equal
deleted
inserted
replaced
60648:02616b531a77 | 60649:3a754b1548d3 |
---|---|
2148 (if (eobp) | 2148 (if (eobp) |
2149 (newline) | 2149 (newline) |
2150 (forward-line 1)))) | 2150 (forward-line 1)))) |
2151 t) | 2151 t) |
2152 | 2152 |
2153 (defvar calendar-redrawing nil | |
2154 "Internal calendar variable, non-nil if inside redraw-calendar.") | |
2155 | |
2156 (defun redraw-calendar () | 2153 (defun redraw-calendar () |
2157 "Redraw the calendar display, if `calendar-buffer' is live." | 2154 "Redraw the calendar display, if `calendar-buffer' is live." |
2158 (interactive) | 2155 (interactive) |
2159 (if (get-buffer calendar-buffer) | 2156 (if (get-buffer calendar-buffer) |
2160 (with-current-buffer calendar-buffer | 2157 (with-current-buffer calendar-buffer |
2161 (let ((cursor-date (calendar-cursor-to-nearest-date)) | 2158 (let ((cursor-date (calendar-cursor-to-nearest-date))) |
2162 (calendar-redrawing t)) | |
2163 (generate-calendar-window displayed-month displayed-year) | 2159 (generate-calendar-window displayed-month displayed-year) |
2164 (calendar-cursor-to-visible-date cursor-date))))) | 2160 (calendar-cursor-to-visible-date cursor-date))))) |
2165 | 2161 |
2166 ;;;###autoload | 2162 ;;;###autoload |
2167 (defcustom calendar-week-start-day 0 | 2163 (defcustom calendar-week-start-day 0 |