diff options
| -rw-r--r-- | lisp/calendar/calendar.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 0d49a6571d5..2da45c18880 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -1450,9 +1450,12 @@ Optional integers MON and YR are used instead of today's date." | |||
| 1450 | (calendar-mark-holidays)) | 1450 | (calendar-mark-holidays)) |
| 1451 | (unwind-protect | 1451 | (unwind-protect |
| 1452 | (if calendar-mark-diary-entries (diary-mark-entries)) | 1452 | (if calendar-mark-diary-entries (diary-mark-entries)) |
| 1453 | (run-hooks (if (calendar-date-is-visible-p today) | 1453 | (if (not (calendar-date-is-visible-p today)) |
| 1454 | 'calendar-today-visible-hook | 1454 | (run-hooks 'calendar-today-invisible-hook) |
| 1455 | 'calendar-today-invisible-hook))))) | 1455 | ;; Functions in calendar-today-visible-hook may rely on the cursor |
| 1456 | ;; being on today's date. | ||
| 1457 | (calendar-cursor-to-visible-date today) | ||
| 1458 | (run-hooks 'calendar-today-visible-hook))))) | ||
| 1456 | 1459 | ||
| 1457 | (defun calendar-generate (month year) | 1460 | (defun calendar-generate (month year) |
| 1458 | "Generate a three-month Gregorian calendar centered around MONTH, YEAR." | 1461 | "Generate a three-month Gregorian calendar centered around MONTH, YEAR." |