org-bbdb: Ignore case in anniv class string.

Based on Jambunathan's suggestion:
http://article.gmane.org/gmane.emacs.orgmode/28508
This commit is contained in:
Bastien Guerry 2010-08-12 11:03:07 +02:00
parent 0f33e18983
commit 12e4140f5d
1 changed files with 2 additions and 2 deletions

View File

@ -322,8 +322,8 @@ This is used by Org to re-create the anniversary hash table."
(when rec
(let* ((class (or (nth 2 rec)
org-bbdb-default-anniversary-format))
(form (or (cdr (assoc class
org-bbdb-anniversary-format-alist))
(form (or (cdr (assoc-string
class org-bbdb-anniversary-format-alist t))
class)) ; (as format string)
(name (nth 1 rec))
(years (- y (car rec)))