diff options
| author | Richard M. Stallman | 2002-08-30 18:21:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-08-30 18:21:39 +0000 |
| commit | 6797907ed4cc2098dfcf8e8e98b660e67f9fdbc7 (patch) | |
| tree | c03faab7822a63b3c66e36dfdc555453161d16f7 | |
| parent | ab0bb234021cecacf8d1c4775a24564929bfc518 (diff) | |
| download | emacs-6797907ed4cc2098dfcf8e8e98b660e67f9fdbc7.tar.gz emacs-6797907ed4cc2098dfcf8e8e98b660e67f9fdbc7.zip | |
(diary-mail-entries): Don't overwrite user's value
of diary-list-include-blanks, but generate message instead if
there are no entries.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/calendar/diary-lib.el | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0f03975cdee..bf7a4bceea5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2002-08-30 Edward M. Reingold <reingold@emr.cs.iit.edu> | ||
| 2 | |||
| 3 | * calendar/diary-lib.el (diary-mail-entries): Don't overwrite | ||
| 4 | user's value of diary-list-include-blanks, but generate message | ||
| 5 | instead if there are no entries. | ||
| 6 | |||
| 1 | 2002-08-30 ARISAWA Akihiro <ari@mbf.sphere.ne.jp> (tiny change) | 7 | 2002-08-30 ARISAWA Akihiro <ari@mbf.sphere.ne.jp> (tiny change) |
| 2 | 8 | ||
| 3 | * ps-print.el (ps-lp-system): Fixed typo in `usg-unix-v'. | 9 | * ps-print.el (ps-lp-system): Fixed typo in `usg-unix-v'. |
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 548ec7a1b3d..3b0110278ba 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -622,14 +622,15 @@ system. Alternatively, you can specify a cron entry: | |||
| 622 | to run it every morning at 1am." | 622 | to run it every morning at 1am." |
| 623 | (interactive "P") | 623 | (interactive "P") |
| 624 | (let* ((diary-display-hook 'fancy-diary-display) | 624 | (let* ((diary-display-hook 'fancy-diary-display) |
| 625 | (diary-list-include-blanks t) | ||
| 626 | (text (progn (list-diary-entries (calendar-current-date) | 625 | (text (progn (list-diary-entries (calendar-current-date) |
| 627 | (if ndays ndays diary-mail-days)) | 626 | (if ndays ndays diary-mail-days)) |
| 628 | (set-buffer fancy-diary-buffer) | 627 | (set-buffer fancy-diary-buffer) |
| 629 | (buffer-substring (point-min) (point-max))))) | 628 | (buffer-substring (point-min) (point-max))))) |
| 630 | (compose-mail diary-mail-addr | 629 | (compose-mail diary-mail-addr |
| 631 | (concat "Diary entries generated " | 630 | (if (string-equal text "") |
| 632 | (calendar-date-string (calendar-current-date)))) | 631 | "No entries found" |
| 632 | (concat "Diary entries generated " | ||
| 633 | (calendar-date-string (calendar-current-date))))) | ||
| 633 | (insert text) | 634 | (insert text) |
| 634 | (funcall (get mail-user-agent 'sendfunc)))) | 635 | (funcall (get mail-user-agent 'sendfunc)))) |
| 635 | 636 | ||