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: Wed, 11 Jan 2017 15:26:51 +0000 Message-ID: <87bmvdaa84.fsf@delle7240.chemeng.ucl.ac.uk> References: <878tqkmunb.fsf@ucl.ac.uk> <87a8azkioa.fsf@ucl.ac.uk> <617f560207eb41c0888a6f3c6a8df9db@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> 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]:33554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRMSi-0002WQ-7A for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 12:13:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRMSe-0007nI-3M for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 12:13:24 -0500 Received: from mail-db5eur01on0114.outbound.protection.outlook.com ([104.47.2.114]:8480 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 1cRMSd-0007mi-Ox for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 12:13:20 -0500 In-Reply-To: <617f560207eb41c0888a6f3c6a8df9db@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> (John Kitchin's message of "Tue, 10 Jan 2017 14:27:08 +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 Tuesday, 10 Jan 2017 at 14:27, John Kitchin wrote: > This does not sound right to me. > > This org file: > > #+BEGIN_SRC org > ,#+select_tags: wanted > ,#+exclude_tags: notwanted > > ,* headline :notwa= nted: > some text > > ,** subhead 1 > ,** subhead2 :wa= nted: > more text > #+END_SRC > > > should not have any thing to export. Yes, and it works. However, if I don't explicitly specify "notwanted" as excluded, the whole file is exported. I guess I don't understand the meaning of "select_tags": I would like this to specify those trees to be exported only if the given tags are present. I would expect the behaviour to be the same whether I specify excluded tags or not when selected tags are given, other than exclusion of subtrees within selected trees. But I guess my understanding is completely wrong. And re-reading the documentation doesn't make things clearer for me. There seems to be a gap between selected and excluded tags which is, to me, ambiguous. If nothing is specified for either, the documentation implies default values (:export: and :noexport: respectively). However, the behaviour is not consistent with this as, if I do not specify any selected or excluded tags, the default behaviour is to export everything. I guess I could look at the code to see what the underlying logic really is. For another day, when I have some time -- it's start of term and I'm doing the headless chicken impression getting material ready for the students. Anyway, with the proper combination of both select and exclude tags, I have managed to get what I want. Thanks, eric =2D-=20 : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.2-104-gf5b7de --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWHZOuwAKCRDIkZPY//z2 fYb3AKCV7pKwdhtZlUvIg/Z+1UdoVFyLnwCfRZJzS78fQVyvWfUUEsjUdNlK3wY= =2edU -----END PGP SIGNATURE----- --=-=-=--