Hi Bastien,
let me just try again. I do not think a minimal example helps much as
org is working as it should - mostly. The default agenda (C-c a a) shows
birthday lines, so the org-contacts anniversaries are working correctly.
I do not (plan to) use the default agenda however. I have FILETAGS and
agendas for work vs. private so that things line up in the appropriate
agenda by default, leaving the possibility to show some things in both
agendas when desired.
But I do not get Birthdays from org-contacts in any but the default
agenda, indicating there are no tags on their agenda-internal
representation. Not even those of the triggering headline; I tried this:
** Geburtstag :private:
%%(org-contacts-anniversaries "BIRTHDAY" "%y. Geburtstag %h :private:")
One might expect to see the private tag on the agenda entry from one of
the two occurrences, but it is not even part of the text! This indicates
tags are being stripped for some reason. If that reason is tags
processing, _then_ there is a bug, as it's not working.
Anyway, I use org-agenda-tag-filter-preset as described previously and I
do not know how to get birthdays through this kind of filter. It seems
impossible, in fact, without adding tags. Other ways of filtering have
other shortcomings, which originally led me to tag-filter-preset.
The solution I would prefer is that the agenda item inherits the tags
from the contacts headline (i.e. the person/event) in question - but I
don't know if this is possible at all over the
%%(org-contacts-anniversaries) anchor. That could make me see "private"
(friend's) birthdays in private agenda and correspondingly for work.
I'm currently looking into fixing this myself, but chances are as dim as
my elisp background.
Cheers,
Simon
On 08/04/2012 10:31 AM, Bastien wrote:
Hi Simon,
Simon Thum<simon.t...@gmx.de> writes:
I have a working setup for birthdays from org-contacts in my default agenda.
However I use split work/private agendas which are discerned using
org-agenda-tag-filter-preset. As it happens, my birthday heading does not
inherit its tags (from FILETAGS) as I intend; I even tried this:
* BDays :private:
%%(org-contacts-anniversaries "BIRTHDAY" "%y %h :private:")
to give it its "private" tag so it shows in the private agenda. No success
so far - although the tag is _not_ displayed in the agenda, neither as tag
nor as headline, indicating there is some processing.
An alternate approach might be altering the agenda filters but given my
split agenda goal I don't know how. My target agenda is:
("p" "private agenda" agenda ""
((org-agenda-span 40)
(org-agenda-tag-filter-preset '("+private"))
(org-agenda-hide-tags-regexp "private")
(org-agenda-compact-blocks t)
))
The only thing really happening is tags filtering - but that seems
incompatible with %%() agenda entries. Maybe this is a bug?
I don't understand.
Can you restate what the bug is and give a way to reproduce it?
Thanks,