diff options
| author | Glenn Morris | 2005-02-27 22:46:03 +0000 |
|---|---|---|
| committer | Glenn Morris | 2005-02-27 22:46:03 +0000 |
| commit | 07a66b979b9f3ccc1ffd8ee87377b3e434f86151 (patch) | |
| tree | bf4f2eec6266ce482fe686828c7128a7c56d0760 | |
| parent | 04c9dde8afc535589a1a4803b45b346325e353e7 (diff) | |
| download | emacs-07a66b979b9f3ccc1ffd8ee87377b3e434f86151.tar.gz emacs-07a66b979b9f3ccc1ffd8ee87377b3e434f86151.zip | |
(diary-remind): Discard any mark portion from diary-entry. Reported
by Andrew Kemp <ajwk@pell.uklinux.net>.
| -rw-r--r-- | lisp/calendar/diary-lib.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index ecbafd24430..5fbae2500d7 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -1625,8 +1625,10 @@ marked on the calendar." | |||
| 1625 | (or (not marking-diary-entries) marking)) | 1625 | (or (not marking-diary-entries) marking)) |
| 1626 | (let ((date (calendar-gregorian-from-absolute | 1626 | (let ((date (calendar-gregorian-from-absolute |
| 1627 | (+ (calendar-absolute-from-gregorian date) days)))) | 1627 | (+ (calendar-absolute-from-gregorian date) days)))) |
| 1628 | (if (setq diary-entry (eval sexp)) | 1628 | (when (setq diary-entry (eval sexp)) ; re-evaluate with adjusted date |
| 1629 | (mapconcat 'eval diary-remind-message "")))) | 1629 | ;; Discard any mark portion from diary-anniversary, etc. |
| 1630 | (if (consp diary-entry) (setq diary-entry (cdr diary-entry))) | ||
| 1631 | (mapconcat 'eval diary-remind-message "")))) | ||
| 1630 | ;; Diary entry may apply to one of a list of days before date | 1632 | ;; Diary entry may apply to one of a list of days before date |
| 1631 | ((and (listp days) days) | 1633 | ((and (listp days) days) |
| 1632 | (or (diary-remind sexp (car days) marking) | 1634 | (or (diary-remind sexp (car days) marking) |