]> git.eshelyaron.com Git - emacs.git/commitdiff
(cal-tex-list-diary-entries): Use LIST-ONLY argument of
authorGlenn Morris <rgm@gnu.org>
Fri, 30 May 2008 02:58:50 +0000 (02:58 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 30 May 2008 02:58:50 +0000 (02:58 +0000)
diary-list-entries rather than setting diary-display-hook.

lisp/calendar/cal-tex.el

index 9ac25be0bef442b32c4dabc97c72edacbedfc4ec..ceba455c134de404eb4a82b216cf1d4d22420dcb 100644 (file)
@@ -265,11 +265,9 @@ This definition is the heart of the calendar!")
 
 (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'.