Re: BBDB suddenly not working for me
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
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: %%(org-bbdb-anniversaries)
Steven Arntson ste...@stevenarntson.com writes: My previous issues with BBDB suddenly not working are resolved, thanks to this list! And I'm now persevering into the world of linking my BBDB anniversaries fields with my org-agenda. I've got a diary.org file set up, which I added to my agenda files. I added the following lines to diary.org: * Anniversaries #+CATEGORY: Anniv %%(org-bbdb-anniversaries) However, when I try to bring up my org-agenda now (M-x org-agenda a), the message I receive is: Bad sexp at line 13 in /home/steven/diary.org: (org-bbdb-anniversaries) Line #13 is the final line in the excerpt above. Does anyone know why I'm getting this error? Ok - here's an even wilder guess than last time! I read this in org-bbdb.el , | ;; It also implements an interface (based on Ivar Rummelhoff's | ;; bbdb-anniv.el) for those org-mode users, who do not use the diary | ;; but who do want to include the anniversaries stored in the BBDB | ;; into the org-agenda. If you already include the `diary' into the | ;; agenda, you might want to prefer to include the anniversaries in | ;; the diary using bbdb-anniv.el. ` ie there are two possible ways of doing this depending on whether you use the emacs diary/calendar system or not. And I noticed that in the slice of your config you posted in your last query that you have a call to bbdb-anniv. And I wonder if the two ways clash if you use 'em together! Haven't got time or talent to probe this properly. You could try commenting out the bbdb-anniv stuff and see that works. You could try commenting out %%(org-bbdb-anniversaries) and see if that works. I'm betting it will :-) atb Glyn -- 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/
Re: %%(org-bbdb-anniversaries)
Steven Arntson ste...@stevenarntson.com writes: Glyn Millington glyn.milling...@gmail.com writes: Steven Arntson ste...@stevenarntson.com writes: My previous issues with BBDB suddenly not working are resolved, thanks to this list! And I'm now persevering into the world of linking my BBDB anniversaries fields with my org-agenda. I've got a diary.org file set up, which I added to my agenda files. I added the following lines to diary.org: * Anniversaries #+CATEGORY: Anniv %%(org-bbdb-anniversaries) However, when I try to bring up my org-agenda now (M-x org-agenda a), the message I receive is: Bad sexp at line 13 in /home/steven/diary.org: (org-bbdb-anniversaries) Line #13 is the final line in the excerpt above. Does anyone know why I'm getting this error? Ok - here's an even wilder guess than last time! I read this in org-bbdb.el , | ;; It also implements an interface (based on Ivar Rummelhoff's | ;; bbdb-anniv.el) for those org-mode users, who do not use the diary | ;; but who do want to include the anniversaries stored in the BBDB | ;; into the org-agenda. If you already include the `diary' into the | ;; agenda, you might want to prefer to include the anniversaries in | ;; the diary using bbdb-anniv.el. ` ie there are two possible ways of doing this depending on whether you use the emacs diary/calendar system or not. And I noticed that in the slice of your config you posted in your last query that you have a call to bbdb-anniv. And I wonder if the two ways clash if you use 'em together! Haven't got time or talent to probe this properly. You could try commenting out the bbdb-anniv stuff and see that works. You could try commenting out %%(org-bbdb-anniversaries) and see if that works. I'm betting it will :-) atb Glyn Glyn, You are batting 1000! That was exactly the problem. I commented out the line from my diary.org file, and it now works perfectly. Splendid! It's an odd thing about emacs that I search around and encounter different ideas, which I cobble together. Sometimes my still-developing emacs literacy level is insufficient to perceive that I'm combining different approaches. Part of me wishes the process were more straightforward, but I've also learned a lot by futzing around that I wouldn't have otherwise. I think it's a net gain. As a fellow futzer I can only agree! atb Glyn -- 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/
Re: bbdb3 won't stop auto-updating records
Piet van Oostrum p...@vanoostrum.org writes: Glyn Millington wrote: Piet van Oostrum p...@vanoostrum.org writes: In BBDB 3.1.2 there is no bbdb-define-all-aliases. It should be bbdb-mail-aliases, as mentioned in some earlier messages on this list. So the wiki should be updated. What bbdb-mail-aliases is supposed to do, is to add the mail-aliases from BBDB to the variable mail-aliases, in addition to those from .mailrc. Thank you for clarifying that! That's great. One other thing that bothers me: If I remember correctly, in BBDB V2 I could type one of the aliases in the To: field, press TAB and it would expand to a list of the mail addresses linked to this alias. But that no longer works. Or is my memory incorrect? Hmmm - your memory is correct (or we share he same false memory!) - for me it worked that way in v2, and still does in v 3 ! So what is your TAB bound to? Hah - brain engages finally Tab is bound to message-x-tab, which of course comes from the message-x package, which interacts with bbdb. atb Glyn -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: bbdb3 won't stop auto-updating records
Nikolaus Rath nikol...@rath.org writes: On Apr 28 2015, Glyn Millington glyn.milling...@gmail.com wrote: Nikolaus Rath nikol...@rath.org writes: Well, yes, if you don't pass 'gnus to the bbdb-mua-auto-update-init function, then it won't parse any Gnus article buffers. However, I *want* bbdb3 to parse the Gnus article buffers under same conditions. I tried implemeting this conditions in a custom bbdb-mua-auto-update-p functions, but it did not work. When debugging this, I found out that even the trivial case of setting bbdb-mua-auto-update-p to nil does not prevent bbdb from parsing the gnus buffers - thus my question here. To me this looks like a bug. Am I missing something? Not sure! I've pasted that chunk of your config down below to comment in it. I'm using bbdb 3.1.2. I have the following configuration: (require 'bbdb) (bbdb-initialize 'gnus 'message) (bbdb-mua-auto-update-init 'gnus 'message) (setq bbdb-mua-pop-up t bbdb-mua-auto-update-p nil So it won't automatically update but bbdb-update-records-p 'query It will ASK if you want to update No. According to the documentation, this is the return value for `bbdb-select-message`. But bbdb select message should never be called if bbdb-mua-auto-update-p is nil. Now you have me intrigued! Rummaging around in the source code for what might invoke bbdb-select-message I found this: (defcustom bbdb/gnus-update-records-p (lambda () (let ((bbdb-update-records-p 'query)) (bbdb-select-message))) How `bbdb-mua-update-records' processes mail addresses in Gnus. This Gnus-specific variable is normally not used. It is a fallback if the generic (MUA-independent) variables `bbdb-mua-auto-update-p', `bbdb-update-records-p' or `bbdb-mua-update-interactive-p' result in a value of nil for the arg UPDATE-P of `bbdb-update-records'. Does that explain why bbdb-select-message is being called despite bbdb-mua-auto-update-p being nil? Way out of my depth here! That being said, I'm not clear what it is you are trying to achieve. It might help to post your custom bbdb-mua-auto-update-p and explain what you are hoping will result. Well, I really just want bbdb to stop ignoring the bbdb-mua-auto-update-p variable. I think that before that works, there is little point in setting it to a custom function and posting that function. That said, my eventual goal is to have bbdb automatically update addresses in only some Gnus groups. Might be worth flagging that up in a new thread? atb Glyn -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: Update records in some Gnus groups
Nikolaus Rath nikol...@rath.org writes: On Apr 29 2015, Nikolaus Rath nikol...@rath.org wrote: Hello, Is there a way to have bbdb3 automatically update the records in some (but not all) Gnus (imap) groups? I tried writing a custom function for bbdb-mua-auto-update-p whose return value depends on the active group but I've had no luck (it seems this variable is just completely ignored). Glyn figured out the problem (see other thread). With bbdb/gnus-update-records-p set to nil, I can set bbdb-mua-auto-update-p to something like defun my-bbdb-select-message () Add people to bbdb when in certain groups. (cond ((string-match ^nnimap:INBOX gnus-newsgroup-name) (bbdb-select-message)) ((eq major-mode 'message-mode) (bbdb-select-message)) (t 'update))) ...and it actually takes effect. Problem solved :-). Result! And thank you for the function - I propose to steal that one! atb Glyn -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: bbdb3 won't stop auto-updating records
Phil Hudson phil.hud...@iname.com writes: On Tue, 28 Apr 2015 at 10:34:32 am BST, Phil Hudson phil.hud...@iname.com wrote: The term mail alias itself seems to me to be poorly chosen, Replying to myself... I've thought of one, namely Gnus' use of group (meaning/derived from newsgroup) for what most MUAs call mailbox, folder or label. So... how about substituting mailing-list for mail-alias throughout? Both list and group lose the sense that alias has of being applicable to either an individual or a group. Maybe that's a reason for keeping mail-alias. Now I'm leaning toward declaring a matching *-mailing-list-* (Lisp) alias for each *-mail-alias-* declaration, without declaring anything obsolete. I would add (that is, a mailing list) or the moral equivalent to each occurrence of mail alias in the doc strings. This is tricky stuff. I don't want to make things worse with an ill-considered change. Maybe I should let it drop for now. Terminological changes can be tricky, and seem to provoke very long threads on other emacs-related groups! I think Eric's suggestion/hint/encouragement about a bbdb(3) manual is probably the answer, but I'm not remotely qualified to tackle such a thing. I find that Google plus a certain amount of grubbing round in the source code usually get me there. atb Glyn -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: bbdb3 won't stop auto-updating records
Phil Hudson phil.hud...@iname.com writes: On Mon, 27 Apr 2015 at 5:59:07 pm BST, Glyn Millington glyn.milling...@gmail.com wrote: (add-hook 'message-setup-hook 'bbdb-mail-aliases) This led me to the documentation for bbdb-mail-aliases, which leads me to ask for an explanation of what a mail alias is. My guess is that it's either a unique nickname for a mail recipient, or a group name for multiple mail recipients, or possibly both/either. I've just checked, and as I thought, mail-alias is an unknown field type which I am asked to define. Before I go ahead, what does defining a field type involve? A mail alias is a group name for multiple mail recipients. At least that's how I use 'em! 'mail-alias' refers to aliases set up in a special file, usually called .mailrc. I'm not clear that this is involved with the bbdb at all. 'bbdb-mail-aliases' is a function which allows 'message' to take advantage of bbdb's mail-aliasing facilities. mail-alias - I believe this is defined in bbdb.el You can insert that field into a record using the instructions offered here: http://www.emacswiki.org/emacs/BbdbMailingLists I hope I have understood your question - forgive me if not. atb Glyn -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: bbdb3 won't stop auto-updating records
Nikolaus Rath nikol...@rath.org writes: On Apr 22 2015, Nikolaus Rath nikol...@rath.org wrote: On Apr 22 2015, Nikolaus Rath nikol...@rath.org wrote: Hello, I'm using bbdb 3.1.2. I have the following configuration: (require 'bbdb) (bbdb-initialize 'gnus 'message) (bbdb-mua-auto-update-init 'gnus 'message) (setq bbdb-mua-pop-up t bbdb-mua-auto-update-p nil bbdb-update-records-p 'query bbdb-ignore-message-alist '((From . bugzilla-daemon))) As I understand, setting bbdb-mua-auto-update-p should prevent bbdb from attempting to automatically update records. However, every time I select any article in Gnus, bbdb asks me if I want to create or update the records of the sender and recipients. ... and conversely, even if I set bbdb-mua-auto-update-p to 'query, it does not ask me to update recipient records when composing and sending a message using message-mode. I feel like I'm missing something obvious... *ping* Really no one able to help? Hi Nikolaus, This is part of my set-up. (setq bbdb-file ~/.emacs.d/.bbdb) (bbdb-initialize 'gnus 'message 'anniv) (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) This works as you want it to work I think. Good luck! Glyn -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: bbdb3 won't stop auto-updating records
Nikolaus Rath nikol...@rath.org writes: Well, yes, if you don't pass 'gnus to the bbdb-mua-auto-update-init function, then it won't parse any Gnus article buffers. However, I *want* bbdb3 to parse the Gnus article buffers under same conditions. I tried implemeting this conditions in a custom bbdb-mua-auto-update-p functions, but it did not work. When debugging this, I found out that even the trivial case of setting bbdb-mua-auto-update-p to nil does not prevent bbdb from parsing the gnus buffers - thus my question here. To me this looks like a bug. Am I missing something? Not sure! I've pasted that chunk of your config down below to comment in it. I'm using bbdb 3.1.2. I have the following configuration: (require 'bbdb) (bbdb-initialize 'gnus 'message) (bbdb-mua-auto-update-init 'gnus 'message) (setq bbdb-mua-pop-up t bbdb-mua-auto-update-p nil So it won't automatically update but bbdb-update-records-p 'query It will ASK if you want to update bbdb-ignore-message-alist '((From . bugzilla-daemon))) I'm only replying because no-one else did, in the hope that my folly might provoke Those Who Know to action :-) That being said, I'm not clear what it is you are trying to achieve. It might help to post your custom bbdb-mua-auto-update-p and explain what you are hoping will result. atb Glyn -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: bbdb-message-all-addresses
Nikolaus Rath nikol...@rath.org writes: On Apr 27 2015, Glyn Millington glyn.milling...@gmail.com wrote: (setq bbdb-message-all-addresses t) Can you explain what this setting does? The help says , | If t `bbdb-update-records' returns all mail addresses of a message. | Otherwise this function returns only the first mail address of each message. ` If you are updating records and this variable is set to t then the bbdb will update the records of ALL the addresses found (I presume) in the headers of that message. It may, I don;t know, ask whether you want to create a new record for any addresses found in the message which are not already contained in the bbdb. (As I'm no longer updating records automatically, I don't need this baby any more!) hth Glyn -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/