diff lisp/calendar/cal-tex.el @ 95414:db35abe41bba

(cal-tex-list-diary-entries): Use LIST-ONLY argument of diary-list-entries rather than setting diary-display-hook.
author Glenn Morris <rgm@gnu.org>
date Fri, 30 May 2008 02:58:50 +0000
parents e49abd957e81
children ee2671797b73
line wrap: on
line diff
--- a/lisp/calendar/cal-tex.el	Fri May 30 02:58:33 2008 +0000
+++ b/lisp/calendar/cal-tex.el	Fri May 30 02:58:50 2008 +0000
@@ -265,11 +265,9 @@
 
 (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'.