From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: exclude certain tags from inheritance Date: Tue, 22 Oct 2013 15:03:44 +0200 Message-ID: References: <87eh7exstc.fsf@pcbe13433.cern.ch> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYbXX-0004sz-Qz for emacs-orgmode@gnu.org; Tue, 22 Oct 2013 08:58:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYbXQ-00053r-SD for emacs-orgmode@gnu.org; Tue, 22 Oct 2013 08:58:27 -0400 Received: from mail-forward1.uio.no ([129.240.10.70]:36133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYbXQ-00053a-Ib for emacs-orgmode@gnu.org; Tue, 22 Oct 2013 08:58:20 -0400 Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.75) (envelope-from ) id 1VYbXN-0003zb-S5 for emacs-orgmode@gnu.org; Tue, 22 Oct 2013 14:58:17 +0200 In-reply-to: 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: 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 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.