BBDB suddenly not working for me

2014-06-23 Thread Steven Arntson
Emacs 24.3.1 BBDB 20140515.806

I've been using BBDB with great success for a few months, but tonight it
has stopped working. I was changing with some settings for org-agenda,
trying to get BBDB to send info on anniversaries. I'm not sure if it was
this or something else ... I've tried to revert those changes, but now
I'm just confused. When I try to retrieve a record in the bbdb buffer
with M-x bbdb, the output is No records matching (string). Completion
of email addresses in gnus is no longer working, either.

My .bbdb is in ~/.emacs.d/.bbdb, and all the data in there seems ok.

In my .emacs I have:

;;  bbdb 
(require 'bbdb)
;;Tell bbdb about your email address:
(setq bbdb-user-mail-names
  (regexp-opt '(ste...@stevenarntson.com)))
;;cycling while completing email addresses
(setq bbdb-complete-name-allow-cycling t)
;;No popup-buffers
(setq bbdb-use-pop-up nil)

And in my .gnus a little more:

;;newer specs for v.3+
(require 'bbdb-autoloads)
  (bbdb-initialize 'gnus 'message)
  (bbdb-mua-auto-update-init 'gnus)
  (setq bbdb-file ~/.emacs.d/.bbdb)

  (setq bbdb-complete-mail-allow-cycling t)
  ;; control pop-up and its size
  (setq bbdb-message-pop-up nil)

  ;; What do we do when invoking bbdb interactively
  (setq bbdb-mua-update-interactive-p '(query . create))

  ;; Make sure we look at every address in a message and not only the
  ;; first one
  (setq bbdb-message-all-addresses t)
  (add-hook 'message-setup-hook 'bbdb-mail-aliases)

  (require 'bbdb-anniv) ; BBDB 3.x this gets birthdays in org agenda
; and diary - clever stuff

(add-hook 'diary-list-entries-hook 'bbdb-anniv-diary-entries)

Does anyone have any idea what might be wrong? I'd appreciate any
advice, for I'm quickly discovering how paralyzed I am without this
utility! :)

Best!
steven arntson


--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: BBDB suddenly not working for me

2014-06-23 Thread Glyn Millington
Steven Arntson ste...@stevenarntson.com writes:

 Emacs 24.3.1 BBDB 20140515.806

 I've been using BBDB with great success for a few months, but tonight it
 has stopped working. I was changing with some settings for org-agenda,
 trying to get BBDB to send info on anniversaries. I'm not sure if it was
 this or something else ... I've tried to revert those changes, but now
 I'm just confused. When I try to retrieve a record in the bbdb buffer
 with M-x bbdb, the output is No records matching (string). Completion
 of email addresses in gnus is no longer working, either.

 My .bbdb is in ~/.emacs.d/.bbdb, and all the data in there seems ok.

 In my .emacs I have:

 ;;  bbdb 
 (require 'bbdb)
 ;;Tell bbdb about your email address:
 (setq bbdb-user-mail-names
   (regexp-opt '(ste...@stevenarntson.com)))
 ;;cycling while completing email addresses
 (setq bbdb-complete-name-allow-cycling t)
 ;;No popup-buffers
 (setq bbdb-use-pop-up nil)

 And in my .gnus a little more:

 ;;newer specs for v.3+
 (require 'bbdb-autoloads)
   (bbdb-initialize 'gnus 'message)
   (bbdb-mua-auto-update-init 'gnus)
   (setq bbdb-file ~/.emacs.d/.bbdb)

   (setq bbdb-complete-mail-allow-cycling t)
   ;; control pop-up and its size
   (setq bbdb-message-pop-up nil)

   ;; What do we do when invoking bbdb interactively
   (setq bbdb-mua-update-interactive-p '(query . create))

   ;; Make sure we look at every address in a message and not only the
   ;; first one
   (setq bbdb-message-all-addresses t)
   (add-hook 'message-setup-hook 'bbdb-mail-aliases)

   (require 'bbdb-anniv) ; BBDB 3.x this gets birthdays in org agenda
   ; and diary - clever stuff

 (add-hook 'diary-list-entries-hook 'bbdb-anniv-diary-entries)

 Does anyone have any idea what might be wrong? I'd appreciate any
 advice, for I'm quickly discovering how paralyzed I am without this
 utility! :)

Hi Steve,

This is what I currently have in init.el for bbdb 3 - I'm using John
Wiegely's wonderful use-package.el nowadays, but I'm sure you can weed
out the useful stuff.   Note especially

1. The added argument to bbdb-initialize

2. The absence of (require 'bbdb-anniv) - no longer necessary. 

Then if you add the 'anniversary:' field to a record thus

anniversary: 17/02/1997 Discovered Gnus! Life began!

that should show up in the org agenda - though you may need to restart emacs.




 BBDB and BBDB-ext
;; Now at version 3
(use-package  bbdb
:config
  (progn
(bbdb-initialize 'gnus 'message 'anniv)
(bbdb-mua-auto-update-init 'gnus)
  (setq bbdb-file ~/.emacs.d/.bbdb)
  
  (setq bbdb-complete-mail-allow-cycling t)
  ;; control pop-up and it's size
  (setq bbdb-mua-pop-up t)
  (setq bbdb-mua-pop-up-window-size 0.1)
  (setq bbdb-mua-update-interactive-p '(query . create))
  (setq bbdb-message-all-addresses t)
  (add-hook 'message-setup-hook 'bbdb-mail-aliases)
  (add-hook 'diary-list-entries-hook 'bbdb-anniv-diary-entries)
  ))
  (use-package  bbdb-ext
  :defer t)

  
Good luck!

Glyn


--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: BBDB suddenly not working for me

2014-06-23 Thread Barak A. Pearlmutter
I've been having similar issues. When it happens I delete the .bbdb and
*BBDB* buffers and they get reloaded and everything seems okay again.
--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Re: BBDB suddenly not working for me

2014-06-23 Thread Roland Winkler
On Mon Jun 23 2014 Barak A. Pearlmutter wrote:
 I've been having similar issues. When it happens I delete the
 .bbdb and *BBDB* buffers and they get reloaded and everything
 seems okay again.

I have never encountered this.  Could you possibly try to provide a
reproducible recipe for this or look at this in the debugger to see
what might have gone wrong?

Roland

PS: deleting ~/.bbdb is obviously dangerous, unless you have a
backup system you know for sure to be reliable.

--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: BBDB suddenly not working for me

2014-06-23 Thread Steven Arntson
Here's the strangest thing I've encountered in emacs for awhile. I just
started a new session, and BBDB still wasn't working. I hit C-x C-b to
list the buffers and it informed me of this buffer:

bbdb 20446 Emacs-Lisp ~/.emacs.d/bbdb

As far as I know, I have no file named bbdb---mine is .bbdb. So I
thought, well, this explains it. A ghost file is loading for some
reason. And indeed, this buffer contains no data beyond a header.

So, I began to compose this post to mention this. I went to the buffer
list again, and saw:

.bbdb 20446 Emacs-Lisp ~/.emacs.d/.bbdb

It fixed itself when I looked away. BBDB is now working perfectly again.

-steven arntson


Barak A. Pearlmutter ba...@cs.nuim.ie writes:

 I've been having similar issues. When it happens I delete the .bbdb
 and *BBDB* buffers and they get reloaded and everything seems okay
 again.


 --
 HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
 Find What Matters Most in Your Big Data with HPCC Systems
 Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
 Leverages Graph Analysis for Fast Processing  Easy Data Exploration
 http://p.sf.net/sfu/hpccsystems
 ___
 bbdb-info@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bbdb-info
 BBDB Home Page: http://bbdb.sourceforge.net/


--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: BBDB suddenly not working for me

2014-06-23 Thread Barak A. Pearlmutter
 I've been having similar issues. When it happens I delete the
 .bbdb and *BBDB* buffers and they get reloaded and everything
 seems okay again.

 I have never encountered this.  Could you possibly try to provide a
 reproducible recipe for this or look at this in the debugger to see
 what might have gone wrong?

So far I have not been able to get anything reliably reproducible.
However I *think* this occurs under the following scenario.
I'm working on a laptop which holds a local copy of .bbdb, and I copy
over a fresh copy of the master .bbdb from another machine, which has
some changes made to it.  Emacs asks if I want to use the new version,
and I say yes.  Then this problem happens.  Then I
 C-x k .bbdb
 C-x k *BBDB*
and all is well again.

 PS: deleting ~/.bbdb is obviously dangerous, unless you have a
 backup system you know for sure to be reliable.

I mean killing the emacs .bbdb buffer, not deleting the file.

--Barak.


pgpJMCEig4m7Y.pgp
Description: PGP signature
--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Re: BBDB suddenly not working for me

2014-06-23 Thread Roland Winkler
On Mon Jun 23 2014 Steven Arntson wrote:
 Here's the strangest thing I've encountered in emacs for awhile. I
 just started a new session, and BBDB still wasn't working. I hit
 C-x C-b to list the buffers and it informed me of this buffer:
 
 bbdb 20446 Emacs-Lisp ~/.emacs.d/bbdb
 
 As far as I know, I have no file named bbdb---mine is
 .bbdb. So I thought, well, this explains it. A ghost file is
 loading for some reason. And indeed, this buffer contains no data
 beyond a header.

This is somewhat strange, but not completely strange.  The variable
bbdb-file is initialized using a call to locate-user-emacs-file.

If this finds an old-fashioned file ~/.bbdb, this becomes the value
of bbdb-file.  If there is no such old-fashioned file, the value of
bbdb-file becomes ~/.emacs.d/bbdb.  Then the latter file will be
created by BBDB, if emacs cannot find neither ~/.bbdb nor
~/.emacs.d/bbdb.

The reason for this is that nowadays all such Emacs files should
reside in ~/.emacs.d/ instead of cluttering your home directory.

So all this really means that for some strange reason upon startup
Emacs does not find your file ~/.bbdb.

The function locate-user-emacs-file is nowadays used by many emacs
packages.  I'd be surprised if their was something wrong with it,
though I cannot copletely exclude this either.  If you do find the
problem to be related to this function, this might be a bug in emacs
itself.

--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: BBDB suddenly not working for me

2014-06-23 Thread Steven Arntson

Roland Winkler wink...@gnu.org writes:

 On Mon Jun 23 2014 Steven Arntson wrote:
 Here's the strangest thing I've encountered in emacs for awhile. I
 just started a new session, and BBDB still wasn't working. I hit
 C-x C-b to list the buffers and it informed me of this buffer:
 
 bbdb 20446 Emacs-Lisp ~/.emacs.d/bbdb
 
 As far as I know, I have no file named bbdb---mine is
 .bbdb. So I thought, well, this explains it. A ghost file is
 loading for some reason. And indeed, this buffer contains no data
 beyond a header.

 This is somewhat strange, but not completely strange.  The variable
 bbdb-file is initialized using a call to locate-user-emacs-file.

 If this finds an old-fashioned file ~/.bbdb, this becomes the value
 of bbdb-file.  If there is no such old-fashioned file, the value of
 bbdb-file becomes ~/.emacs.d/bbdb.  Then the latter file will be
 created by BBDB, if emacs cannot find neither ~/.bbdb nor
 ~/.emacs.d/bbdb.

 The reason for this is that nowadays all such Emacs files should
 reside in ~/.emacs.d/ instead of cluttering your home directory.

 So all this really means that for some strange reason upon startup
 Emacs does not find your file ~/.bbdb.

 The function locate-user-emacs-file is nowadays used by many emacs
 packages.  I'd be surprised if their was something wrong with it,
 though I cannot copletely exclude this either.  If you do find the
 problem to be related to this function, this might be a bug in emacs
 itself.

 

Maybe the problem lies with my inexperienced directory nomenclature,
where I'm using ~/.emacs.d/.bbdb --- a hybrid between the two options
you listed.

Should I rename ~/.emacs.d/.bbdb to ~/.emacs.d/bbdb  ?

Thank you!
steven


--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: BBDB suddenly not working for me

2014-06-23 Thread Glyn Millington
Roland Winkler wink...@gnu.org writes:

 On Mon Jun 23 2014 Steven Arntson wrote:
 Here's the strangest thing I've encountered in emacs for awhile. I
 just started a new session, and BBDB still wasn't working. I hit
 C-x C-b to list the buffers and it informed me of this buffer:
 
 bbdb 20446 Emacs-Lisp ~/.emacs.d/bbdb
 
 As far as I know, I have no file named bbdb---mine is
 .bbdb. So I thought, well, this explains it. A ghost file is
 loading for some reason. And indeed, this buffer contains no data
 beyond a header.

 This is somewhat strange, but not completely strange.  The variable
 bbdb-file is initialized using a call to locate-user-emacs-file.

 If this finds an old-fashioned file ~/.bbdb, this becomes the value
 of bbdb-file.  If there is no such old-fashioned file, the value of
 bbdb-file becomes ~/.emacs.d/bbdb.  Then the latter file will be
 created by BBDB, if emacs cannot find neither ~/.bbdb nor
 ~/.emacs.d/bbdb.

 The reason for this is that nowadays all such Emacs files should
 reside in ~/.emacs.d/ instead of cluttering your home directory.

 So all this really means that for some strange reason upon startup
 Emacs does not find your file ~/.bbdb.

 The function locate-user-emacs-file is nowadays used by many emacs
 packages.  I'd be surprised if their was something wrong with it,
 though I cannot copletely exclude this either.  If you do find the
 problem to be related to this function, this might be a bug in emacs
 itself.

Hmmm - could this be related to the OP's bbdb config being spread across
two files, init.el and .gnus ?

The line telling emacs  where to find the bbdb config file is in .gnus,
but bbdb is required in init.el.

So is Emacs creating the ~/.emacs.d/bbdb buffer, because it can't find
the ~/.emacs.d/.bbdb file until .gnus is loaded?

If so then shoving all the bbdb config stuff into init.el might do the
trick (works for me here). 

On the other hand I could be barking up a totally wrong tree :-)


atb

Glyn


--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: BBDB suddenly not working for me

2014-06-23 Thread Steven Arntson
Glyn Millington glyn.milling...@gmail.com writes:

 Roland Winkler wink...@gnu.org writes:

 On Mon Jun 23 2014 Steven Arntson wrote:
 Here's the strangest thing I've encountered in emacs for awhile. I
 just started a new session, and BBDB still wasn't working. I hit
 C-x C-b to list the buffers and it informed me of this buffer:
 
 bbdb 20446 Emacs-Lisp ~/.emacs.d/bbdb
 
 As far as I know, I have no file named bbdb---mine is
 .bbdb. So I thought, well, this explains it. A ghost file is
 loading for some reason. And indeed, this buffer contains no data
 beyond a header.

 This is somewhat strange, but not completely strange.  The variable
 bbdb-file is initialized using a call to locate-user-emacs-file.

 If this finds an old-fashioned file ~/.bbdb, this becomes the value
 of bbdb-file.  If there is no such old-fashioned file, the value of
 bbdb-file becomes ~/.emacs.d/bbdb.  Then the latter file will be
 created by BBDB, if emacs cannot find neither ~/.bbdb nor
 ~/.emacs.d/bbdb.

 The reason for this is that nowadays all such Emacs files should
 reside in ~/.emacs.d/ instead of cluttering your home directory.

 So all this really means that for some strange reason upon startup
 Emacs does not find your file ~/.bbdb.

 The function locate-user-emacs-file is nowadays used by many emacs
 packages.  I'd be surprised if their was something wrong with it,
 though I cannot copletely exclude this either.  If you do find the
 problem to be related to this function, this might be a bug in emacs
 itself.

 Hmmm - could this be related to the OP's bbdb config being spread across
 two files, init.el and .gnus ?

 The line telling emacs  where to find the bbdb config file is in .gnus,
 but bbdb is required in init.el.

 So is Emacs creating the ~/.emacs.d/bbdb buffer, because it can't find
 the ~/.emacs.d/.bbdb file until .gnus is loaded?

 If so then shoving all the bbdb config stuff into init.el might do the
 trick (works for me here). 

 On the other hand I could be barking up a totally wrong tree :-)


 atb

 Glyn



This makes so much sense, I just went ahead and joined the two
files. Whether it helps or not, it seems much more logical than what I
had going on before!

-steven


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/