diary-list-entries rather than setting diary-display-hook.
(defun cal-tex-list-diary-entries (d1 d2)
"Generate a list of all diary-entries from absolute date D1 to D2."
- (let ((diary-list-include-blanks nil)
- (diary-display-hook 'ignore))
- (diary-list-entries
- (calendar-gregorian-from-absolute d1)
- (1+ (- d2 d1)))))
+ (let (diary-list-include-blanks)
+ (diary-list-entries (calendar-gregorian-from-absolute d1)
+ (1+ (- d2 d1)) t)))
(defun cal-tex-preamble (&optional args)
"Insert the LaTeX calendar preamble into `cal-tex-buffer'.