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: Fri, 02 Mar 2012 17:32:52 +0100 Message-ID: <87k433t13f.wl%dmaus@ictsoc.de> References: <8273.1330161610@alphaville> <87r4xgyqdm.wl%dmaus@ictsoc.de> <6717.1330381319@alphaville> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3VPx-0004OY-9d for emacs-orgmode@gnu.org; Fri, 02 Mar 2012 11:33:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3VPd-0006mG-3A for emacs-orgmode@gnu.org; Fri, 02 Mar 2012 11:33:16 -0500 Received: from app1a.xlhost.de ([213.202.242.161]:43348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3VPc-0006m4-TP for emacs-orgmode@gnu.org; Fri, 02 Mar 2012 11:32:57 -0500 In-Reply-To: <6717.1330381319@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: David Maus , emacs-orgmode@gnu.org At Mon, 27 Feb 2012 17:21:59 -0500, Nick Dokos wrote: > > David Maus wrote: > > > > 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. > > > > I still have a problem with one configuration (but not with another), > but I haven't drilled down to figure out what the problem is. I was > wondering however if the eval-after-load should be predicated on > bbdb-com rather than bbdb[fn:1]: with this change, both of my tested > configurations work (hardly a definitive test but perhaps better than > nothing). Thanks for the feedback. Eval after load 'bbdb-com would have been better -- I just replaced the entire defvar by a check in `org-bbdb-open' and `org-bbdb-store-link' for the required functions. So this should really work now. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de