Re: BBDB anniversaries in the calendar/diary

2013-11-27 Thread Kevin Brubeck Unhammer
Roland Winkler wink...@gnu.org writes:

 On Tue Nov 26 2013 Joseph Mingrone wrote:
 It's useful being able to have BBDB anniversaries show up in the Org
 agenda following section 10.3.1 of the Org manual.  The only problem
 with putting the anniversaries in BBDB instead of the diary is that the
 dates aren't marked in the calendar and don't show up the diary.  Is
 there away to make the calendar/diary aware of anniversaries in BBDB?

 Have you looked at bbdb-anniv.el of BBDB 3?  Its only goal is to
 make calendar/diary aware of anniversaries / birthdays etc. stored
 in BBDB. (I do not know how to further propagate these dates to org
 mode; but once these things are known to calendar/diary/ this should
 be no problem anymore.)

I use bbdb-anniv. It shows anniversaries in my org-agenda since one of my
files says 

# %%(org-bbdb-anniversaries)

but I don't know if there's a way to capture bbdb-anniversaries from
e.g. calendar/diary/agenda. In case it's helpful, here are the relevant
parts of my .emacs.d setup:

#+BEGIN_SRC emacs-lisp
  ;;; Anniversaries:
  (when (require 'bbdb-anniv nil 'noerror)
(add-hook 'diary-list-entries-hook 'bbdb-anniv-diary-entries)
(setq
 ;; seems like org-bbdb just ignores these:
 bbdb-default-anniversary-format gebursdag
 bbdb-anniv-alist '( (gebursdag . Gebursdag: %n blir %d!)
 (årsdag  . %n, %d-årsjubileum) )
 ;; … so we set them here as well:
 org-bbdb-default-anniversary-format gebursdag
 org-bbdb-anniversary-format-alist
 '((gebursdag lambda (name years suffix)
(concat Gebursdag: [[bbdb: name ][
name  ( (number-to-string years)  år)]]))
   (årsdag lambda (name years suffix)
(concat [[bbdb: name ][
(number-to-string years) -årsjubileum:  name ]])
  
  ;; Unlike other date forms, I want anniversaries in the format -MM-DD, and
  ;; diary-date-forms is used by bbdb-anniv to parse the anniversary field
  (eval-after-load 'calendar-norway ; calls (calendar-set-date-style 'european)
'(add-to-list 'diary-date-forms '(year - month - day [^0-9])))
#+END_SRC

(so yes, you can add arbitrary anniversary types and change the date format)

-- 
Kevin Brubeck Unhammer

GPG: 0x766AC60C


pgpuShrNr9BaN.pgp
Description: PGP signature
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Re: BBDB anniversaries in the calendar/diary

2013-11-27 Thread Joseph Mingrone
Kevin Brubeck Unhammer unham...@fsfe.org writes:
 Roland Winkler wink...@gnu.org writes:

 On Tue Nov 26 2013 Joseph Mingrone wrote:
 It's useful being able to have BBDB anniversaries show up in the Org
 agenda following section 10.3.1 of the Org manual.  The only problem
 with putting the anniversaries in BBDB instead of the diary is that the
 dates aren't marked in the calendar and don't show up the diary.  Is
 there away to make the calendar/diary aware of anniversaries in BBDB?

 Have you looked at bbdb-anniv.el of BBDB 3?  Its only goal is to
 make calendar/diary aware of anniversaries / birthdays etc. stored
 in BBDB. (I do not know how to further propagate these dates to org
 mode; but once these things are known to calendar/diary/ this should
 be no problem anymore.)

 I use bbdb-anniv. It shows anniversaries in my org-agenda since one of my
 files says 

 # %%(org-bbdb-anniversaries)

It's no problem to have the BBDB anniversaries show up in the Org
agenda.  In fact, I noticed after upgrading to BBDB 3 and adding
bbdb-anniv-diary-entries to diary-list-entries-hook the
%%(org-bbdb-anniversaries) line in an Org file isn't necessary to have
these anniversaries show up in the agenda.  Cool.  Of course, they show
up in the fancy diary display as well when you hit 'd' on the day from
the calendar.

The only piece missing, from my perspective, is that these days aren't
marked in the calendar like they would be for an equivalent anniversary
created in the diary.  Am I missing a function that could be added to a
calendar hook to have these BBDB anniversaries mark the calendar?

Thanks for all the feedback,

Joseph


--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/