changeset 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 2b0558bc8d53
children ea54c6f7a388
files lisp/calendar/cal-tex.el
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
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'.