mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Avoid flicker when marking diary entries (bug#78861)
* lisp/calendar/calendar.el (calendar-generate-window): Remove historical and not really understood `sit-for' calls.
This commit is contained in:
parent
202a7039a2
commit
c64b2bf113
1 changed files with 2 additions and 4 deletions
|
|
@ -1432,12 +1432,10 @@ Optional integers MON and YR are used instead of today's date."
|
|||
(fit-window-to-buffer nil nil calendar-minimum-window-height)
|
||||
;; For a full height window or a window that is horizontally
|
||||
;; combined don't fit height to that of its buffer.
|
||||
(set-window-vscroll nil 0))
|
||||
(sit-for 0))
|
||||
(set-window-vscroll nil 0)))
|
||||
(and calendar-mark-holidays-flag
|
||||
;; (calendar-date-is-valid-p today) ; useful for BC dates
|
||||
(calendar-mark-holidays)
|
||||
(and in-calendar-window (sit-for 0)))
|
||||
(calendar-mark-holidays))
|
||||
(unwind-protect
|
||||
(if calendar-mark-diary-entries-flag (diary-mark-entries))
|
||||
(run-hooks (if today-visible
|
||||
|
|
|
|||
Loading…
Reference in a new issue