org-bbdb: Wrap defvar org-bbdb-old in eval-after-load

* org-bbdb.el (org-bbdb-old): Wrap `defvar' so the variable gets
  defined after bbdb was loaded.

Thanks to Nick Dokos for reporting this glitch in
<8273.1330161610@alphaville>.
This commit is contained in:
David Maus 2012-02-27 21:22:39 +01:00
parent a8234eb7f1
commit ddf4f1e7a9
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@
(defvar date) ;; dynamically scoped from Org
;; Support for version 2.35
(defvar org-bbdb-old (fboundp 'bbdb-record-get-field-internal))
(eval-after-load 'bbdb
'(defvar org-bbdb-old (fboundp 'bbdb-record-get-field-internal)))
;; Customization