From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Weird interaction between ox-extra and include :minlevel Date: Sun, 15 Apr 2018 09:44:48 +0200 Message-ID: <87k1t8lxqn.fsf@nicolasgoaziou.fr> References: <87in8wy2nm.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7cLG-0000GK-Bh for emacs-orgmode@gnu.org; Sun, 15 Apr 2018 03:44:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f7cLD-00058C-9E for emacs-orgmode@gnu.org; Sun, 15 Apr 2018 03:44:54 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:32985) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f7cLD-00055K-2V for emacs-orgmode@gnu.org; Sun, 15 Apr 2018 03:44:51 -0400 In-Reply-To: (Daniel P. Gomez's message of "Thu, 12 Apr 2018 16:38:03 +0200") 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: Daniel P Gomez Cc: emacs-orgmode@gnu.org Hello, Daniel P Gomez writes: > I was thinking of #+ignore_tags. as an analog of #+exclude_tags. While > #+exclude_tags removes a complete subtree from export, #+ignore_tags > would only ignore headlines and insert the contents. You may want to read the discussions about this feature on the ML. I think "only" is not accurate. To make it clear, what would become the following documents: --8<---------------cut here---------------start------------->8--- * H Text ** H2 :ignore: Text 2 *** H3 --8<---------------cut here---------------end--------------->8--- and --8<---------------cut here---------------start------------->8--- Text 0 * H :ignore: Text ** H2 Text 2 --8<---------------cut here---------------end--------------->8--- but also --8<---------------cut here---------------start------------->8--- - item * H :ignore: - new list? --8<---------------cut here---------------end--------------->8--- and the following convoluted one --8<---------------cut here---------------start------------->8--- #+begin_example Something * H :ignore: Somethin else #+end_example --8<---------------cut here---------------end--------------->8--- > When used in combination, subtree would be excluded no matter what. > > #+IGNORE_TAGS: ignore bar > #+EXLUDE_TAGS: noexport foo I'm not sure to understand this. > The idea of ignore_tags, for me, would to allow grouping content > within the Org file in a manner that differs from the grouping of > content upon export - without having to resort to filter-hooks. Not > that hooks are bad, but they are harder to construct without proper > elisp skills and require knowledge about the Org API. The manual gives one example of one such hook, see (info "(org) Advanced configuration"). There, the filter /only/ removes headlines. Regards, -- Nicolas Goaziou