]> git.eshelyaron.com Git - emacs.git/commitdiff
(diary-remind): Discard any mark portion from diary-entry. Reported
authorGlenn Morris <rgm@gnu.org>
Sun, 27 Feb 2005 22:46:03 +0000 (22:46 +0000)
committerGlenn Morris <rgm@gnu.org>
Sun, 27 Feb 2005 22:46:03 +0000 (22:46 +0000)
by Andrew Kemp <ajwk@pell.uklinux.net>.

lisp/calendar/diary-lib.el

index ecbafd24430a902ecc14d287faf347e06f8aca92..5fbae2500d7770728b1e52d284bbb137182593fb 100644 (file)
@@ -1625,8 +1625,10 @@ marked on the calendar."
            (or (not marking-diary-entries) marking))
       (let ((date (calendar-gregorian-from-absolute
                    (+ (calendar-absolute-from-gregorian date) days))))
-        (if (setq diary-entry (eval sexp))
-            (mapconcat 'eval diary-remind-message ""))))
+        (when (setq diary-entry (eval sexp)) ; re-evaluate with adjusted date
+          ;; Discard any mark portion from diary-anniversary, etc.
+          (if (consp diary-entry) (setq diary-entry (cdr diary-entry)))
+          (mapconcat 'eval diary-remind-message ""))))
      ;; Diary entry may apply to one of a list of days before date
      ((and (listp days) days)
       (or (diary-remind sexp (car days) marking)