From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: excluding whole trees on export when subtrees have "select" tags present Date: Mon, 09 Jan 2017 21:49:41 +0000 Message-ID: <87a8azkioa.fsf@ucl.ac.uk> References: <878tqkmunb.fsf@ucl.ac.uk> Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQiMT-0001Lz-D7 for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 17:24:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQiMO-0002ot-7h for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 17:24:17 -0500 Received: from mail-db5eur01on0112.outbound.protection.outlook.com ([104.47.2.112]:65440 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cQiMN-0002nT-SP for emacs-orgmode@gnu.org; Mon, 09 Jan 2017 17:24:12 -0500 In-Reply-To: (John Kitchin's message of "Mon, 9 Jan 2017 15:46:58 +0000") 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" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Monday, 9 Jan 2017 at 15:46, John Kitchin wrote: > Based on the docstrings for org-export-select-tags and > org-export-exclude-tags, this looks expected. > > It does not look possible to exclude a heading and include a subheading > under it. It is possible to include a heading and exclude some > subheadings though you need a wanted tag in the parent, and notwanted > tags in the subtrees, and to declare the exclude tags. I think I was unclear. My confusion is that a tree (rooted at a top level headline) that I do not want exported is nevertheless exported if a subtree within that tree has a "selected" tag. I would have thought the higher level heading would take precedence. > I am surprised you can use comment like this. It looks to me like > commenting a tree makes all the subtrees in it not export too. Yes, it is. Again, I obviously didn't explain myself well. I have resorted to commenting out whole trees (rooted at headlines) to avoid them being exported because a sub-tree has the selected tag. In any case, I have found a workaround by inverting my tag usage. thanks, eric =2D-=20 : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-189-ge46676 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWHQFdQAKCRDIkZPY//z2 fZrVAJ9AGTBXwU0agqv10G4/l90Ro8CRgwCgloWAoOzLArWFXvNQ+e9rlMGrV88= =Ufjx -----END PGP SIGNATURE----- --=-=-=--