emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug in selective export when selected heading follows excluded heading
@ 2012-05-26  7:34 Hsiu-Khuern Tang
  2012-06-01  3:02 ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Hsiu-Khuern Tang @ 2012-05-26  7:34 UTC (permalink / raw)
  To: orgmode

Hi,

Here's an input file, a.org:

----------------------------------------------------

#+OPTIONS:   toc:nil
#+EXPORT_EXCLUDE_TAGS: exclude
#+EXPORT_SELECT_TAGS: include

* chap1

** sec1 							    :exclude:

** sec2								    :include:

----------------------------------------------------

If I export this file, the heading gets mangled.  E.g., the ascii export is:

----------------------------------------------------
                                  a
                                  =

Author: Hsiu-Khuern Tang
Date: 2012-05-26 00:31:10 PDT



1 chap1** sec2 :include:
========================

----------------------------------------------------

I'm using the latest Org.

Thanks,
- Hsiu-Khuern.

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

* Bug in selective export when selected heading follows excluded heading
@ 2012-05-28 18:44 Hsiu-Khuern Tang
  0 siblings, 0 replies; 5+ messages in thread
From: Hsiu-Khuern Tang @ 2012-05-28 18:44 UTC (permalink / raw)
  To: orgmode

(Adding the [O] tag to the subject line -- sorry for the re-post)

Hi,

Here's an input file, a.org:

----------------------------------------------------

#+OPTIONS: toc:nil
#+EXPORT_EXCLUDE_TAGS: exclude
#+EXPORT_SELECT_TAGS: include

* chap1

** sec1                                                :exclude:

** sec2                                                :include:

----------------------------------------------------

If I export this file, the heading gets mangled.  E.g., the ascii export is:

----------------------------------------------------
                                 a
                                 =

Author: Hsiu-Khuern Tang
Date: 2012-05-26 00:31:10 PDT



1 chap1** sec2 :include:
========================

----------------------------------------------------

I'm using the latest Org.

Thanks,
- Hsiu-Khuern.

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

* Re: bug in selective export when selected heading follows excluded heading
  2012-05-26  7:34 bug in selective export when selected heading follows excluded heading Hsiu-Khuern Tang
@ 2012-06-01  3:02 ` Eric S Fraga
  2012-06-01  6:10   ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2012-06-01  3:02 UTC (permalink / raw)
  To: Hsiu-Khuern Tang; +Cc: orgmode

Hsiu-Khuern Tang <tangoh@gmail.com> writes:

> Hi,
>
> Here's an input file, a.org:
>
> ----------------------------------------------------
>
> #+OPTIONS:   toc:nil
> #+EXPORT_EXCLUDE_TAGS: exclude
> #+EXPORT_SELECT_TAGS: include
>
> * chap1
>
> ** sec1 							    :exclude:
>
> ** sec2								    :include:
>
> ----------------------------------------------------
>
> If I export this file, the heading gets mangled.  E.g., the ascii export is:

Confirmed with up to date org.
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.1.50.1
: using Org release_7.8.10-630-g4144c5.dirty

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

* Re: bug in selective export when selected heading follows excluded heading
  2012-06-01  3:02 ` Eric S Fraga
@ 2012-06-01  6:10   ` Eric S Fraga
  2012-06-01 19:00     ` Hsiu-Khuern Tang
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2012-06-01  6:10 UTC (permalink / raw)
  To: Hsiu-Khuern Tang; +Cc: orgmode

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Hsiu-Khuern Tang <tangoh@gmail.com> writes:
>
>> Hi,
>>
>> Here's an input file, a.org:
>>
>> ----------------------------------------------------
>>
>> #+OPTIONS:   toc:nil
>> #+EXPORT_EXCLUDE_TAGS: exclude
>> #+EXPORT_SELECT_TAGS: include
>>
>> * chap1
>>
>> ** sec1 							    :exclude:
>>
>> ** sec2								    :include:
>>
>> ----------------------------------------------------
>>
>> If I export this file, the heading gets mangled.  E.g., the ascii export is:
>
> Confirmed with up to date org.

To follow this up further, the solution is to put the :include: tag on
the top level heading (chap1) as well.  Then the export works fine.

There is still a bug but whether sec2 should be output at all or not,
given that chap1 has no tag, is unclear!  Undefined situation basically.

HTH,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.1.50.1
: using Org release_7.8.10-630-g4144c5.dirty

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

* Re: bug in selective export when selected heading follows excluded heading
  2012-06-01  6:10   ` Eric S Fraga
@ 2012-06-01 19:00     ` Hsiu-Khuern Tang
  0 siblings, 0 replies; 5+ messages in thread
From: Hsiu-Khuern Tang @ 2012-06-01 19:00 UTC (permalink / raw)
  To: orgmode

Hi Eric,

On Thu, May 31, 2012 at 11:10 PM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>>
>> Confirmed with up to date org.

Thanks for confirming the bug.

> ...
> There is still a bug but whether sec2 should be output at all or not,
> given that chap1 has no tag, is unclear!  Undefined situation basically.

The "Selective export" section of the manual does say, "If a selected
tree is a subtree, the heading hierarchy above it will also be
selected for export, but not the text below those headings."  I find
this behavior useful to avoid having too many tags.

> HTH,
> eric
>
> --
> : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.1.50.1
> : using Org release_7.8.10-630-g4144c5.dirty
>

- Hsiu-Khuern.

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

end of thread, other threads:[~2012-06-01 19:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-26  7:34 bug in selective export when selected heading follows excluded heading Hsiu-Khuern Tang
2012-06-01  3:02 ` Eric S Fraga
2012-06-01  6:10   ` Eric S Fraga
2012-06-01 19:00     ` Hsiu-Khuern Tang
  -- strict thread matches above, loose matches on Subject: below --
2012-05-28 18:44 Bug " Hsiu-Khuern Tang

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