;;; Code:
(require 'calendar)
+(require 'diary-lib)
\f
(defgroup calendar-html nil
;; Monthly calendar
;;------------------------------------------------------------
-(autoload 'diary-list-entries "diary-lib")
-
(defun cal-html-list-diary-entries (d1 d2)
"Generate a list of all diary-entries from absolute date D1 to D2."
- (diary-list-entries (calendar-gregorian-from-absolute d1)
- (1+ (- d2 d1)) t))
+ (if (with-demoted-errors "Not adding diary entries: %S"
+ (diary-check-diary-file))
+ (diary-list-entries (calendar-gregorian-from-absolute d1)
+ (1+ (- d2 d1)) t)))
(defun cal-html-insert-agenda-days (month year diary-list holiday-list)
"Insert HTML commands for a range of days in monthly calendars.