From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Tags included in subtree export title despite tags:nil in header Date: Sat, 29 Oct 2011 21:07:27 -0400 Message-ID: <10900.1319936847@alphaville.dokosmarshall.org> References: <83vcra2493.fsf@yahoo.it> <20111027134220.510ec38b@kuru.homelinux.net> <20111027140516.2f6d5508@kuru.homelinux.net> <87fwic6j37.fsf@gnu.org> <20111029164832.1c83474b@kuru.homelinux.net> <871utvu66a.fsf@gnu.org> <20111030011058.2e53a791@kuru.homelinux.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKJs7-0002Cb-EH for emacs-orgmode@gnu.org; Sat, 29 Oct 2011 21:07:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKJs6-0003Cd-Ai for emacs-orgmode@gnu.org; Sat, 29 Oct 2011 21:07:35 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:3164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKJs6-0003CV-4X for emacs-orgmode@gnu.org; Sat, 29 Oct 2011 21:07:34 -0400 In-Reply-To: Message from Suvayu Ali of "Sun, 30 Oct 2011 01:10:58 +0200." <20111030011058.2e53a791@kuru.homelinux.net> 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: Suvayu Ali Cc: Bastien , nicholas.dokos@hp.com, org-mode mailing list Suvayu Ali wrote: > In the attached patch, I use the variable org-export-with-tags to check > whether tags should be included or skipped in the export title. However > irrespective of the export options I get the value not-in-toc. As a > result, the tags are not included even if tags:t is set. > > Is my use of org-export-with-tags incorrect? Is there something else I > need to do before I can use it? > Try changing the test to just + (setq title (if org-export-with-tags + (format "%s\t%s" (match-string 3) (match-string 4)) + (match-string 3))) This checks whether org-export-with-tags is non-nil, rather than checking that it is exactly t. In general, checking for nil or non-nil is probably a better way to go, unless there are specific reasons to be more specific. Nick