From ddf4f1e7a95608b2223dee7170ecd4a51788def4 Mon Sep 17 00:00:00 2001 From: David Maus Date: Mon, 27 Feb 2012 21:22:39 +0100 Subject: [PATCH] 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>. --- lisp/org-bbdb.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-bbdb.el b/lisp/org-bbdb.el index ddb7e4ab8..1162a8dd1 100644 --- a/lisp/org-bbdb.el +++ b/lisp/org-bbdb.el @@ -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