From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: bug in selective export when selected heading follows excluded heading Date: Fri, 1 Jun 2012 15:40:33 +0930 Message-ID: <87396fr292.fsf@ucl.ac.uk> References: <8762bbspiv.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SaL4G-0003IO-D1 for emacs-orgmode@gnu.org; Fri, 01 Jun 2012 02:10:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SaL49-0001Jt-3V for emacs-orgmode@gnu.org; Fri, 01 Jun 2012 02:10:35 -0400 Received: from db3ehsobe004.messaging.microsoft.com ([213.199.154.142]:51860 helo=db3outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SaL48-0001I6-QU for emacs-orgmode@gnu.org; Fri, 01 Jun 2012 02:10:29 -0400 In-Reply-To: <8762bbspiv.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Fri, 1 Jun 2012 12:32:32 +0930") 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: Hsiu-Khuern Tang Cc: orgmode Eric S Fraga writes: > Hsiu-Khuern Tang 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