+2002-08-30 Edward M. Reingold <reingold@emr.cs.iit.edu>
+
+ * calendar/diary-lib.el (diary-mail-entries): Don't overwrite
+ user's value of diary-list-include-blanks, but generate message
+ instead if there are no entries.
+
2002-08-30 ARISAWA Akihiro <ari@mbf.sphere.ne.jp> (tiny change)
* ps-print.el (ps-lp-system): Fixed typo in `usg-unix-v'.
to run it every morning at 1am."
(interactive "P")
(let* ((diary-display-hook 'fancy-diary-display)
- (diary-list-include-blanks t)
(text (progn (list-diary-entries (calendar-current-date)
(if ndays ndays diary-mail-days))
(set-buffer fancy-diary-buffer)
(buffer-substring (point-min) (point-max)))))
(compose-mail diary-mail-addr
- (concat "Diary entries generated "
- (calendar-date-string (calendar-current-date))))
+ (if (string-equal text "")
+ "No entries found"
+ (concat "Diary entries generated "
+ (calendar-date-string (calendar-current-date)))))
(insert text)
(funcall (get mail-user-agent 'sendfunc))))