diff options
| author | Glenn Morris | 2010-10-06 19:26:30 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-10-06 19:26:30 -0700 |
| commit | 7e1e2a6e32f7f7e1bf42c56e613b5de5356c6503 (patch) | |
| tree | a2baf4ed9c7e8989ccb3fffcb6e974118285de79 | |
| parent | 17ca79503537b602969bd373c6463caa03c3d5c1 (diff) | |
| download | emacs-7e1e2a6e32f7f7e1bf42c56e613b5de5356c6503.tar.gz emacs-7e1e2a6e32f7f7e1bf42c56e613b5de5356c6503.zip | |
Minr appt.el change.
* lisp/calendar/appt.el (appt-activate): Give a warning rather than an error
if there is no diary-file.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/appt.el | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9f83e4bf1a3..2ec81e5a48d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-10-07 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * calendar/appt.el (appt-activate): Give a warning rather than an error | ||
| 4 | if there is no diary-file. | ||
| 5 | |||
| 1 | 2010-10-06 Michael Albinus <michael.albinus@gmx.de> | 6 | 2010-10-06 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Use | 8 | * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Use |
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el index 43e8666bc31..d6f4f9862d6 100644 --- a/lisp/calendar/appt.el +++ b/lisp/calendar/appt.el | |||
| @@ -621,17 +621,19 @@ ARG is positive, otherwise off." | |||
| 621 | (setq appt-timer nil)) | 621 | (setq appt-timer nil)) |
| 622 | (if appt-active | 622 | (if appt-active |
| 623 | (progn | 623 | (progn |
| 624 | (diary-check-diary-file) | ||
| 625 | (add-hook 'write-file-functions 'appt-update-list) | 624 | (add-hook 'write-file-functions 'appt-update-list) |
| 626 | (setq appt-timer (run-at-time t 60 'appt-check) | 625 | (setq appt-timer (run-at-time t 60 'appt-check) |
| 627 | global-mode-string | 626 | global-mode-string |
| 628 | (append global-mode-string '(appt-mode-string))) | 627 | (append global-mode-string '(appt-mode-string))) |
| 629 | (appt-check t) | 628 | (appt-check t) |
| 630 | (message "Appointment reminders enabled")) | 629 | (message "Appointment reminders enabled%s" |
| 630 | ;; Someone might want to use appt-add without a diary. | ||
| 631 | (if (ignore-errors (diary-check-diary-file)) | ||
| 632 | "" | ||
| 633 | " (no diary file found)"))) | ||
| 631 | (message "Appointment reminders disabled")))) | 634 | (message "Appointment reminders disabled")))) |
| 632 | 635 | ||
| 633 | 636 | ||
| 634 | (provide 'appt) | 637 | (provide 'appt) |
| 635 | 638 | ||
| 636 | ;; arch-tag: bf5791c4-8921-499e-a26f-772b1788d347 | ||
| 637 | ;;; appt.el ends here | 639 | ;;; appt.el ends here |