The standard function in Emacs 24 returns a list of strings (and nil
things), which is bogus. Turn it into a string with newlines. This
does work when more than one anniversary falls on the same date.
(if (equal str old) (setq done t)))
(ad-set-arg 1 str))))
(if (equal str old) (setq done t)))
(ad-set-arg 1 str))))
+(defadvice org-bbdb-anniversaries (after mdw-fixup-list compile activate)
+ "Return a string rather than a list."
+ (with-temp-buffer
+ (let ((anyp nil))
+ (dolist (e (let ((ee ad-return-value))
+ (if (atom ee) (list ee) ee)))
+ (when e
+ (when anyp (insert ?\n))
+ (insert e)
+ (setq anyp t)))
+ (setq ad-return-value
+ (and anyp (buffer-string))))))
+
;; Fighting with Org-mode's evil key maps.
(defvar mdw-evil-keymap-keys
;; Fighting with Org-mode's evil key maps.
(defvar mdw-evil-keymap-keys