org-bbdb: Check for BBDB version depending on available functions
commite1ac0cb9cd6f1f7c0f7de892d5a720dfad27ff68
authorDavid Maus <dmaus@ictsoc.de>
Fri, 2 Mar 2012 16:28:17 +0000 (2 17:28 +0100)
committerDavid Maus <dmaus@ictsoc.de>
Fri, 2 Mar 2012 16:29:35 +0000 (2 17:29 +0100)
tree29ddad8b64b1ef66002efa040ee9817da6be1c2c
parent5bcf0c16dae8d9ef2ed7da6279a904d5d8184b70
org-bbdb: Check for BBDB version depending on available functions

* org-bbdb.el (org-bbdb-old): Replace `defvar' after loading 'bbdb to
check for old or new version by a check for the required function in
`org-bbdb-open' and `org-bbdb-store-link'.
(org-bbdb-store-link, org-bbdb-open): Check which version of bbdb is
to be used.

This is a follow up of ddf4f1e7a95608b2223dee7170ecd4a51788def4.

Instead of depending on the loading of bbdb we do a check for the
required function in `org-bbdb-open' and `org-bbdb-store-link'.
lisp/org-bbdb.el