emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Birthdays, org-contacts and agenda filters - a bug?
@ 2012-07-22 11:07 Simon Thum
  2012-08-04  8:31 ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Simon Thum @ 2012-07-22 11:07 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

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 appreciate any idea (that retains my two agenda setup).

Cheers,

Simon

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Birthdays, org-contacts and agenda filters - a bug?
  2012-07-22 11:07 Birthdays, org-contacts and agenda filters - a bug? Simon Thum
@ 2012-08-04  8:31 ` Bastien
  2012-08-07 11:53   ` Simon Thum
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2012-08-04  8:31 UTC (permalink / raw)
  To: Simon Thum; +Cc: emacs-orgmode

Hi Simon,

Simon Thum <simon.thum@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,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Birthdays, org-contacts and agenda filters - a bug?
  2012-08-04  8:31 ` Bastien
@ 2012-08-07 11:53   ` Simon Thum
  2012-08-10 10:30     ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Simon Thum @ 2012-08-07 11:53 UTC (permalink / raw)
  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<simon.thum@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,
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Birthdays, org-contacts and agenda filters - a bug?
  2012-08-07 11:53   ` Simon Thum
@ 2012-08-10 10:30     ` Bastien
  2012-08-11 17:15       ` Simon Thum
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2012-08-10 10:30 UTC (permalink / raw)
  To: Simon Thum; +Cc: emacs-orgmode

Hi Simon,

Simon Thum <simon.thum@gmx.de> writes:

> let me just try again. 

This should be fixed now, thanks for the detailed explanations.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Birthdays, org-contacts and agenda filters - a bug?
  2012-08-10 10:30     ` Bastien
@ 2012-08-11 17:15       ` Simon Thum
  2012-08-11 17:54         ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Simon Thum @ 2012-08-11 17:15 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Thanks a lot, it works!

It is good enough for me, but it seems not to work with tag inheritance, 
and it could in general be better to allow tags to be returned from the 
sexp itself.

Anyway, jut a tought.

If you let me tinker with worg I'm happy to document this feature.

Cheers,

Simon


On 08/10/2012 12:30 PM, Bastien wrote:
> Hi Simon,
>
> Simon Thum<simon.thum@gmx.de>  writes:
>
>> let me just try again.
>
> This should be fixed now, thanks for the detailed explanations.
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Birthdays, org-contacts and agenda filters - a bug?
  2012-08-11 17:15       ` Simon Thum
@ 2012-08-11 17:54         ` Bastien
  0 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2012-08-11 17:54 UTC (permalink / raw)
  To: Simon Thum; +Cc: emacs-orgmode

Hi Simon,

Simon Thum <simon.thum@gmx.de> writes:

> It is good enough for me, but it seems not to work with tag
> inheritance,

It does now, thanks.

> and it could in general be better to allow tags to be returned from the
> sexp itself.

Well, it's more difficult, and I'm not sure it's really worth the
effort.

> If you let me tinker with worg I'm happy to document this feature.

Of course! Please send me your public key in a private email and I'll
give you write access.

Best,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-11 17:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-22 11:07 Birthdays, org-contacts and agenda filters - a bug? Simon Thum
2012-08-04  8:31 ` Bastien
2012-08-07 11:53   ` Simon Thum
2012-08-10 10:30     ` Bastien
2012-08-11 17:15       ` Simon Thum
2012-08-11 17:54         ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).