From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Thum Subject: Re: Birthdays, org-contacts and agenda filters - a bug? Date: Tue, 07 Aug 2012 13:53:48 +0200 Message-ID: <502101CC.4070205@gmx.de> References: <500BDEFA.3090809@gmx.de> <87k3xfawj4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyiMF-0001sr-Bj for emacs-orgmode@gnu.org; Tue, 07 Aug 2012 07:53:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyiMD-0002YJ-7H for emacs-orgmode@gnu.org; Tue, 07 Aug 2012 07:53:55 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:33149) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SyiMC-0002Xr-Sw for emacs-orgmode@gnu.org; Tue, 07 Aug 2012 07:53:53 -0400 In-Reply-To: <87k3xfawj4.fsf@gnu.org> 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: Bastien Cc: emacs-orgmode 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 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, >