aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2015-12-07 21:05:35 -0500
committerGlenn Morris2015-12-07 21:05:35 -0500
commit5ec9d8ff4fdc2769d674ebe1f63c019cc6137273 (patch)
tree0702bd23944648fe2b12dbc18b9d27e995630ed9
parent251fac2a2616c7bb3664cb2e318cad52829d07fe (diff)
downloademacs-5ec9d8ff4fdc2769d674ebe1f63c019cc6137273.tar.gz
emacs-5ec9d8ff4fdc2769d674ebe1f63c019cc6137273.zip
* lisp/calendar/cal-html.el: Require diary-lib.
(cal-html-list-diary-entries): Handle no diary. (Bug#21994)
-rw-r--r--lisp/calendar/cal-html.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/calendar/cal-html.el b/lisp/calendar/cal-html.el
index 4bddc384895..8c46e3ade74 100644
--- a/lisp/calendar/cal-html.el
+++ b/lisp/calendar/cal-html.el
@@ -32,6 +32,7 @@
32;;; Code: 32;;; Code:
33 33
34(require 'calendar) 34(require 'calendar)
35(require 'diary-lib)
35 36
36 37
37(defgroup calendar-html nil 38(defgroup calendar-html nil
@@ -358,12 +359,12 @@ of holidays, rather than diary entries."
358;; Monthly calendar 359;; Monthly calendar
359;;------------------------------------------------------------ 360;;------------------------------------------------------------
360 361
361(autoload 'diary-list-entries "diary-lib")
362
363(defun cal-html-list-diary-entries (d1 d2) 362(defun cal-html-list-diary-entries (d1 d2)
364 "Generate a list of all diary-entries from absolute date D1 to D2." 363 "Generate a list of all diary-entries from absolute date D1 to D2."
365 (diary-list-entries (calendar-gregorian-from-absolute d1) 364 (if (with-demoted-errors "Not adding diary entries: %S"
366 (1+ (- d2 d1)) t)) 365 (diary-check-diary-file))
366 (diary-list-entries (calendar-gregorian-from-absolute d1)
367 (1+ (- d2 d1)) t)))
367 368
368(defun cal-html-insert-agenda-days (month year diary-list holiday-list) 369(defun cal-html-insert-agenda-days (month year diary-list holiday-list)
369 "Insert HTML commands for a range of days in monthly calendars. 370 "Insert HTML commands for a range of days in monthly calendars.