emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* exclude certain tags from inheritance
@ 2013-10-21 20:38 David Belohrad
  2013-10-22  8:38 ` Christian Moe
  0 siblings, 1 reply; 6+ messages in thread
From: David Belohrad @ 2013-10-21 20:38 UTC (permalink / raw)
  To: Org Mode Mailing List


Dear all,

could someone help me with this?

I'm tagging my projects using different tags:

- ordinary 'whatever' tags like MARS, 2013, ProjectX ...

- tags starting with ampersand: @Me, @John, @David

- tags starting with hash #SpecificBehaviour, #LocalModification

As you can see, the first item is generic, project related, and I need
to inherit those tags within the tree. The other two items are specific:
second is to tag person who is in charge of the todo, third is a
'non-generic' tag defining very specific activity. The two I need to
have always non-inherited.

I've learned that there is org-use-tag-inheritance, which can be setup
to a regular expression. I'm not very strong in this elisp thingy. Could
someone help me to construct the expression such, that all tags starting
with @ or # will be excluded from inheritance?

many thanks

.d.

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

* Re: exclude certain tags from inheritance
  2013-10-21 20:38 exclude certain tags from inheritance David Belohrad
@ 2013-10-22  8:38 ` Christian Moe
  2013-10-22 12:09   ` David Belohrad
  0 siblings, 1 reply; 6+ messages in thread
From: Christian Moe @ 2013-10-22  8:38 UTC (permalink / raw)
  To: David Belohrad; +Cc: Org Mode Mailing List


Hi,

Try setting org-use-tag-inheritance to "^[@#]"

Yours,
Christian

David Belohrad writes:

> Could someone help me to construct the expression such, that all tags
> starting with @ or # will be excluded from inheritance?
>
> many thanks
>
> .d.

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

* Re: exclude certain tags from inheritance
  2013-10-22  8:38 ` Christian Moe
@ 2013-10-22 12:09   ` David Belohrad
  2013-10-22 12:15     ` Nick Dokos
  2013-10-22 13:03     ` Christian Moe
  0 siblings, 2 replies; 6+ messages in thread
From: David Belohrad @ 2013-10-22 12:09 UTC (permalink / raw)
  To: Christian Moe; +Cc: Org Mode Mailing List

Hi Christinan,
thanks for hint. That one i've tested as first. doing

(setq org-use-tag-inheritance "^[@#]")

surprisingly, it does not do the expected stuff and all @xxx tags are
still exported to the branches, where they are not supposed to be.

At the same time I've tested this:

  (setq org-tags-exclude-from-inheritance '(
"@Adrian" 	"@LiShu" 	"@Martin"))

and this one perfectly does the job when org-use-tag-inheritance is set
to true. Trouble with this one is, that @ is basically followed by a
name, and with every new name I have to for the moment manually add an
item into exclude ....

.d.



Christian Moe <mail@christianmoe.com> writes:

> Hi,
>
> Try setting org-use-tag-inheritance to "^[@#]"
>
> Yours,
> Christian
>
> David Belohrad writes:
>
>> Could someone help me to construct the expression such, that all tags
>> starting with @ or # will be excluded from inheritance?
>>
>> many thanks
>>
>> .d.

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

* Re: exclude certain tags from inheritance
  2013-10-22 12:09   ` David Belohrad
@ 2013-10-22 12:15     ` Nick Dokos
  2013-10-23  8:42       ` David Belohrad
  2013-10-22 13:03     ` Christian Moe
  1 sibling, 1 reply; 6+ messages in thread
From: Nick Dokos @ 2013-10-22 12:15 UTC (permalink / raw)
  To: emacs-orgmode

David Belohrad <david@belohrad.ch> writes:

> Hi Christinan,
> thanks for hint. That one i've tested as first. doing
>
> (setq org-use-tag-inheritance "^[@#]")
>

That should probably be

(setq org-use-tag-inheritance "^[^@#]")

(i.e. anything *not* starting with @ or #).

Untested.

Nick


> surprisingly, it does not do the expected stuff and all @xxx tags are
> still exported to the branches, where they are not supposed to be.
>
> At the same time I've tested this:
>
>   (setq org-tags-exclude-from-inheritance '(
> "@Adrian" 	"@LiShu" 	"@Martin"))
>
> and this one perfectly does the job when org-use-tag-inheritance is set
> to true. Trouble with this one is, that @ is basically followed by a
> name, and with every new name I have to for the moment manually add an
> item into exclude ....
>
> .d.
>
>
>
> Christian Moe <mail@christianmoe.com> writes:
>
>> Hi,
>>
>> Try setting org-use-tag-inheritance to "^[@#]"
>>
>> Yours,
>> Christian
>>
>> David Belohrad writes:
>>
>>> Could someone help me to construct the expression such, that all tags
>>> starting with @ or # will be excluded from inheritance?
>>>
>>> many thanks
>>>
>>> .d.
>
>

-- 
Nick

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

* Re: exclude certain tags from inheritance
  2013-10-22 12:09   ` David Belohrad
  2013-10-22 12:15     ` Nick Dokos
@ 2013-10-22 13:03     ` Christian Moe
  1 sibling, 0 replies; 6+ messages in thread
From: Christian Moe @ 2013-10-22 13:03 UTC (permalink / raw)
  To: David Belohrad; +Cc: Org Mode Mailing List, Christian Moe

Hei,

Oops, sorry, a circumflex too few. Try: "^[^@#]"

- matches only strings whose first character is not @ or #.

Yours,
Christian

David Belohrad writes:

> Hi Christinan,
> thanks for hint. That one i've tested as first. doing
>
> (setq org-use-tag-inheritance "^[@#]")
>
> surprisingly, it does not do the expected stuff and all @xxx tags are
> still exported to the branches, where they are not supposed to be.
>
> At the same time I've tested this:
>
>   (setq org-tags-exclude-from-inheritance '(
> "@Adrian" 	"@LiShu" 	"@Martin"))
>
> and this one perfectly does the job when org-use-tag-inheritance is set
> to true. Trouble with this one is, that @ is basically followed by a
> name, and with every new name I have to for the moment manually add an
> item into exclude ....
>
> .d.
>
>
>
> Christian Moe <mail@christianmoe.com> writes:
>
>> Hi,
>>
>> Try setting org-use-tag-inheritance to "^[@#]"
>>
>> Yours,
>> Christian
>>
>> David Belohrad writes:
>>
>>> Could someone help me to construct the expression such, that all tags
>>> starting with @ or # will be excluded from inheritance?
>>>
>>> many thanks
>>>
>>> .d.

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

* Re: exclude certain tags from inheritance
  2013-10-22 12:15     ` Nick Dokos
@ 2013-10-23  8:42       ` David Belohrad
  0 siblings, 0 replies; 6+ messages in thread
From: David Belohrad @ 2013-10-23  8:42 UTC (permalink / raw)
  To: Nick Dokos, emacs-orgmode


YEEEES! This works as a charm. Many thanks guys.

d.



Nick Dokos <ndokos@gmail.com> writes:

> David Belohrad <david@belohrad.ch> writes:
>
>> Hi Christinan,
>> thanks for hint. That one i've tested as first. doing
>>
>> (setq org-use-tag-inheritance "^[@#]")
>>
>
> That should probably be
>
> (setq org-use-tag-inheritance "^[^@#]")
>
> (i.e. anything *not* starting with @ or #).
>
> Untested.
>
> Nick
>
>
>> surprisingly, it does not do the expected stuff and all @xxx tags are
>> still exported to the branches, where they are not supposed to be.
>>
>> At the same time I've tested this:
>>
>>   (setq org-tags-exclude-from-inheritance '(
>> "@Adrian" 	"@LiShu" 	"@Martin"))
>>
>> and this one perfectly does the job when org-use-tag-inheritance is set
>> to true. Trouble with this one is, that @ is basically followed by a
>> name, and with every new name I have to for the moment manually add an
>> item into exclude ....
>>
>> .d.
>>
>>
>>
>> Christian Moe <mail@christianmoe.com> writes:
>>
>>> Hi,
>>>
>>> Try setting org-use-tag-inheritance to "^[@#]"
>>>
>>> Yours,
>>> Christian
>>>
>>> David Belohrad writes:
>>>
>>>> Could someone help me to construct the expression such, that all tags
>>>> starting with @ or # will be excluded from inheritance?
>>>>
>>>> many thanks
>>>>
>>>> .d.
>>
>>
>
> -- 
> Nick

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

end of thread, other threads:[~2013-10-23  8:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-21 20:38 exclude certain tags from inheritance David Belohrad
2013-10-22  8:38 ` Christian Moe
2013-10-22 12:09   ` David Belohrad
2013-10-22 12:15     ` Nick Dokos
2013-10-23  8:42       ` David Belohrad
2013-10-22 13:03     ` Christian Moe

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).