emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Override global export-option prop:t
@ 2014-04-09 20:50 Thorsten Jolitz
  2014-04-09 21:54 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Thorsten Jolitz @ 2014-04-09 20:50 UTC (permalink / raw)
  To: emacs-orgmode


Hi List, 

This minimal Org buffer "tmp<2>"

,----------------------------
| #+OPTIONS: prop:t
| 
| * A
|   :PROPERTIES:
|   :EXPORT_OPTIONS: prop:nil
|   :END:
| 
| C
| 
| * B
|   :PROPERTIES:
|   :DESCRIPTION: Headline B
|   :END:
| 
| D
`----------------------------

exports to

,-------------------------------
| tmp<2>
| 
| Table of Contents
| 
|   * 1. A
|   * 2. B
| 
| 1 A
| 
| EXPORT_OPTIONS: prop:nil
| 
| C
| 
| 2 B
| 
| DESCRIPTION: Headline B
| 
| D
| 
| Author: Thorsten Jolitz
| 
| Created: 2014-04-09 Mi 22:44
| 
| Emacs 24.3.1 (Org mode 8.2.5h)
| 
| Validate
`-------------------------------


but I would have expected that the options node-property prop:nil
overrides the global option prop:t. 

Bug or wrong usage?

-- 
cheers,
Thorsten

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

* Re: Override global export-option prop:t
  2014-04-09 20:50 Override global export-option prop:t Thorsten Jolitz
@ 2014-04-09 21:54 ` Nicolas Goaziou
  2014-04-09 22:39   ` Thorsten Jolitz
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2014-04-09 21:54 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: emacs-orgmode

Hello,

Thorsten Jolitz <tjolitz@gmail.com> writes:

> This minimal Org buffer "tmp<2>"
>
> ,----------------------------
> | #+OPTIONS: prop:t
> | 
> | * A
> |   :PROPERTIES:
> |   :EXPORT_OPTIONS: prop:nil
> |   :END:
> | 
> | C
> | 
> | * B
> |   :PROPERTIES:
> |   :DESCRIPTION: Headline B
> |   :END:
> | 
> | D
> `----------------------------
>
> exports to
>
> ,-------------------------------
> | tmp<2>
> | 
> | Table of Contents
> | 
> |   * 1. A
> |   * 2. B
> | 
> | 1 A
> | 
> | EXPORT_OPTIONS: prop:nil
> | 
> | C
> | 
> | 2 B
> | 
> | DESCRIPTION: Headline B
> | 
> | D
> | 
> | Author: Thorsten Jolitz
> | 
> | Created: 2014-04-09 Mi 22:44
> | 
> | Emacs 24.3.1 (Org mode 8.2.5h)
> | 
> | Validate
> `-------------------------------
>
> but I would have expected that the options node-property prop:nil
> overrides the global option prop:t. 
>
> Bug or wrong usage?

Wrong usage. EXPORT_* properties only apply when export scope is the
current subtree (C-s in export dispatcher).


Regards,

-- 
Nicolas Goaziou

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

* Re: Override global export-option prop:t
  2014-04-09 21:54 ` Nicolas Goaziou
@ 2014-04-09 22:39   ` Thorsten Jolitz
  2014-04-10  9:49     ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Thorsten Jolitz @ 2014-04-09 22:39 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> This minimal Org buffer "tmp<2>"
>>
>> ,----------------------------
>> | #+OPTIONS: prop:t
>> | 
>> | * A
>> |   :PROPERTIES:
>> |   :EXPORT_OPTIONS: prop:nil
>> |   :END:
>> | 
>> | C
>> | 
>> | * B
>> |   :PROPERTIES:
>> |   :DESCRIPTION: Headline B
>> |   :END:
>> | 
>> | D
>> `----------------------------
>>
>> exports to
>>
>> ,-------------------------------
>> | tmp<2>
>> | 
>> | Table of Contents
>> | 
>> |   * 1. A
>> |   * 2. B
>> | 
>> | 1 A
>> | 
>> | EXPORT_OPTIONS: prop:nil
>> | 
>> | C
>> | 
>> | 2 B
>> | 
>> | DESCRIPTION: Headline B
>> | 
>> | D
>> | 
>> | Author: Thorsten Jolitz
>> | 
>> | Created: 2014-04-09 Mi 22:44
>> | 
>> | Emacs 24.3.1 (Org mode 8.2.5h)
>> | 
>> | Validate
>> `-------------------------------
>>
>> but I would have expected that the options node-property prop:nil
>> overrides the global option prop:t. 
>>
>> Bug or wrong usage?
>
> Wrong usage. EXPORT_* properties only apply when export scope is the
> current subtree (C-s in export dispatcher).

I see ... but is there any possibility to export a buffer with global
option prop:t but inhibit the property-drawer export for one specific
subtree (would be subtree A in the example above)?

Similar to :noexport: tags for headlines?

-- 
cheers,
Thorsten

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

* Re: Override global export-option prop:t
  2014-04-09 22:39   ` Thorsten Jolitz
@ 2014-04-10  9:49     ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2014-04-10  9:49 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: emacs-orgmode

Hello,

Thorsten Jolitz <tjolitz@gmail.com> writes:

> I see ... but is there any possibility to export a buffer with global
> option prop:t but inhibit the property-drawer export for one specific
> subtree (would be subtree A in the example above)?
>
> Similar to :noexport: tags for headlines?

Not out of the box. You may want to write a hook for that.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2014-04-10  9:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-09 20:50 Override global export-option prop:t Thorsten Jolitz
2014-04-09 21:54 ` Nicolas Goaziou
2014-04-09 22:39   ` Thorsten Jolitz
2014-04-10  9:49     ` Nicolas Goaziou

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