|
@@ -291,11 +291,15 @@ This is used by Org to re-create the anniversary hash table."
|
|
|
(y (nth 2 date)) ; year
|
|
|
(annivs (gethash (list m d) org-bbdb-anniv-hash))
|
|
|
(text ())
|
|
|
- split class form rec)
|
|
|
+ split class form rec recs)
|
|
|
|
|
|
;; we don't want to miss people born on Feb. 29th
|
|
|
- (when (and (= m 3) (= d 1) (not (calendar-leap-year-p y)))
|
|
|
- (setq annivs (cons annivs (gethash (list 2 29) org-bbdb-anniv-hash))))
|
|
|
+ (when (and (= m 3) (= d 1)
|
|
|
+ (not (null (gethash (list 2 29) org-bbdb-anniv-hash)))
|
|
|
+ (not (calendar-leap-year-p y)))
|
|
|
+ (setq recs (gethash (list 2 29) org-bbdb-anniv-hash))
|
|
|
+ (while (setq rec (pop recs))
|
|
|
+ (push rec annivs)))
|
|
|
|
|
|
(when annivs
|
|
|
(while (setq rec (pop annivs))
|