[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Tags included in subtree export title despite tags:nil in header
From: |
Bastien |
Subject: |
Re: [O] Tags included in subtree export title despite tags:nil in header |
Date: |
Sun, 30 Oct 2011 09:48:06 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) |
Hi Suvayu,
Suvayu Ali <address@hidden> writes:
> That said, the problem I am facing is org-export-with-tags evaluates to
> not-in-toc irrespective of what is set by the tags: option (see for
> example the test file earlier in the thread). So effectively the test
> is not checking what it is supposed to check. So I was wondering
> whether I missed something I should be doing.
The problem is that `org-export-with-tags' is a global option,
storing the default value for any buffer (and _a fortiori_ any
subtree) -- while you want to check local options, which may
be different at export time.
Local options are stored in a `org-export-opt-plist'. You get
the value of the "tags:" option by checking the property list
like this:
(plist-get org-export-opt-plist :tags))
Hence the patch below, which you can try to make sure it does
what you want.
Thanks!
correct_title_with_no_tags.patch
Description: Text Data
--
Bastien
- [O] Tags included in subtree export title despite tags:nil in header, suvayu ali, 2011/10/26
- Re: [O] Tags included in subtree export title despite tags:nil in header, Giovanni Ridolfi, 2011/10/27
- Re: [O] Tags included in subtree export title despite tags:nil in header, Suvayu Ali, 2011/10/27
- Re: [O] Tags included in subtree export title despite tags:nil in header, Suvayu Ali, 2011/10/27
- Re: [O] Tags included in subtree export title despite tags:nil in header, Bastien, 2011/10/29
- Re: [O] Tags included in subtree export title despite tags:nil in header, Suvayu Ali, 2011/10/29
- Re: [O] Tags included in subtree export title despite tags:nil in header, Bastien, 2011/10/29
- Re: [O] Tags included in subtree export title despite tags:nil in header, Suvayu Ali, 2011/10/29
- Re: [O] Tags included in subtree export title despite tags:nil in header, Nick Dokos, 2011/10/29
- Re: [O] Tags included in subtree export title despite tags:nil in header, Suvayu Ali, 2011/10/30
- Re: [O] Tags included in subtree export title despite tags:nil in header,
Bastien <=