From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: [BUG?] subtle sequencing error when setting org-bbdb-old in org-bbdb.el Date: Mon, 27 Feb 2012 21:26:29 +0100 Message-ID: <87r4xgyqdm.wl%dmaus@ictsoc.de> References: <8273.1330161610@alphaville> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Mon_Feb_27_21:26:25_2012-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S279p-0006lO-KT for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 15:26:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S279o-0003z2-97 for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 15:26:53 -0500 Received: from app1a.xlhost.de ([213.202.242.161]:37804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S279n-0003yj-WC for emacs-orgmode@gnu.org; Mon, 27 Feb 2012 15:26:52 -0500 In-Reply-To: <8273.1330161610@alphaville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org --pgp-sign-Multipart_Mon_Feb_27_21:26:25_2012-1 Content-Type: text/plain; charset=US-ASCII Hi Nick, At Sat, 25 Feb 2012 04:20:10 -0500, Nick Dokos wrote: > > I was bitten by this and it took me a while to figure out what was going > on, so maybe I can save somebody some time by recording the problem here. > > I'm using bbdb 2.36devo (i.e. an old bbdb version - see below for my > 3.0 troubles), and although org-bbdb-anniversaries was working fine, > bbdb links did not: C-c l on a bbdb entry would raise an error about > void function bbdb-record-get-field. Now org-bbdb-store-link contains > the following code > > (if org-bbdb-old > (bbdb-record-getprop rec 'company) > (car (bbdb-record-get-field rec 'organization)) > > so clearly org-bbdb-old was nil - but why? It seemed to me that it should > be t since my bbdb was old. > > It turns out that org-bbdb.el contains a line that sets org-bbdb-old > thus: > > (defvar org-bbdb-old (fboundp 'bbdb-record-get-field-internal)) > > Check whether an "old" bbdb function is present and if so, set > org-bbdb-old to t. Basically, the variable tells the rest of org-bbdb.el > whether one's bbdb is old (< 3.0) or not, so that it can use the proper > compatibility layer. This was not working in my case : the variable > resolutely held the value nil, no matter what requires/load-library/ etc > tricks I threw at it. > > The problem was that org-bbdb is part of org-modules by default and that > was loading org-bbdb way too early, certainly before bbdb itself was > loaded. That would set the value to nil and nothing I would do could > change it (short of whacking it with a setq). I pushed a patch that should fix this problem. I wrapped a `eval-after-load' around the `defvar', this should make sure that the variable is set after bbdb was loaded. > > Re: the bbdb 3.0 troubles. I have tried switching to bbdb 3.0 > (specifically "BBDB version 3.02 ($Date: 2012/01/02 10:08:06 $)") but > I've been stymied so far with org-bbdb-anniversaries blowing up (a far > worse scenario than the link problem above - that's why I'm still using > 2.36devo and went after the link fix first). > > The error I get is "Debugger entered--Lisp error: (void-function > bbdb-record-getprop)" in org-bbdb-anniv-hash (see backtrace below), > but I haven't chased down that problem yet. But it seems there are > people using bbdb 3.0 so I'm wondering what's wrong with my setup. Can't comment on this. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Mon_Feb_27_21:26:25_2012-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAk9L5vUACgkQDMLgk1Evc4V0xAD8CArdF47/dgZeuM26Nz/bAeSM X705oempqkfLBYbjqfsA/2Jo1RxKwrFHlOoAkeBkJZKovTPPLVzSZzKk3W+T/+T+ =O3E4 -----END PGP SIGNATURE----- --pgp-sign-Multipart_Mon_Feb_27_21:26:25_2012-1--