From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kNjELNwul2PTBwEAbAwnHQ (envelope-from ) for ; Mon, 12 Dec 2022 14:38:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id APbJK9wul2MgLAAAG6o9tA (envelope-from ) for ; Mon, 12 Dec 2022 14:38:36 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5583514947 for ; Mon, 12 Dec 2022 14:38:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4izy-0002yI-63; Mon, 12 Dec 2022 08:37:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4izv-0002y3-49 for emacs-orgmode@gnu.org; Mon, 12 Dec 2022 08:37:35 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4izt-0004pj-3n for emacs-orgmode@gnu.org; Mon, 12 Dec 2022 08:37:34 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 249C0240026 for ; Mon, 12 Dec 2022 14:37:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670852251; bh=Hp6ORyBBPvlkwmSBExLrt2vlkYct8XE1SpyIzOdzBZE=; h=From:To:Cc:Subject:Date:From; b=DQdbJ5ysaUVnumxJ40kqTby30RldpScs9ueSXiSHZUSkNz/8U5I18I13TFTTeWFQi z03NWcb3yovQEFqEZTDMxdPMbveQlMBxkZBtunuUAjWJOXzCUlmo3RGp9G7zzOs+12 MDdENrhQb1GhVMaYmMfIjv2WUOv8P7r6Pk5J3gn7dcoU2m3JsJq9/rLg49tJnV1RTz DNUPoDbltaGwhwSOin9jWx+Vohpy/JzehwWYve++/wbM4C03NIA6q1Py1+ydVpP61z OdgA6DyKXUvuMOFOMVrDNJLwknHug9bJgNA/lsfLDcGaXp3QNvHd3/FsfC+xMvPqO7 jKYccF7cIZURA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NW2k22CB0z9rxM; Mon, 12 Dec 2022 14:37:30 +0100 (CET) From: Ihor Radchenko To: Thomas Ingram Cc: emacs-orgmode@gnu.org Subject: Re: Prevent files with excluded FILETAGS from being exported In-Reply-To: <87zgbzrs0t.fsf@taingram.org> References: <87zgbzrs0t.fsf@taingram.org> Date: Mon, 12 Dec 2022 13:37:29 +0000 Message-ID: <87y1rcg2ue.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670852316; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vDaFbXb4170TNo6OlOP4lI4+L0/KZltUrPsNsKMaJ+U=; b=baStX2PtJZOI3Zy85BUCwf5Ps7cfHVfzltl2YliRtMXflFJ8oJSUw4/Ix3xOahC62qWqKp ItX69CddjuERm78h7mRi4Nxo2aAndO/pfS7LQ4ECdYEOBCERtWIMaSgm+kM35ZaEKZ1NBj RHeNA2ZR9sS/+3Fj+iuQIUYoFNZRErBpt2is/HTOD1fXt1SNKJESnXLZb5jjxDJ/vpmymG BJ5fsWOxmqx1dNOiWFDaYfO3RRmEWeDHD5lkv2xYAx2FeamWq9ebCJsX9lufnjYVjx0DrZ tE2O4CAtHHj+nppucmnxMTjEEZ5HcFCzdDrnP8M49CFElzpUYzUTjdadoT9bOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DQdbJ5ys; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670852316; a=rsa-sha256; cv=none; b=BLcfwMbcCMvtexT0lYPMgIXIB6ayI5G01Kf/uu3y/mTHco6KxcdnCfy6P6Gb4UH2/CzsAY Q7DzT2UU36iY3C1WsWZADby2dfI82sRqu4ivdN8aUH2eT2yzPsFMCgNl5abFelooOnFNoX tuiLqDkevMED05wxLHOmvQwUVtHrnrENSdEPwyrv4m6SyxQDq+t/uJPl0Z8YHojyYbli3F l63EaaYnzqSosm9ZdcE3srwo6fmCvhaFoM6MvQG39ZnjNv8IxtDdybc7MAXJU2KG01zobv xxYhIur3UIsPjh4Jx4qeoKTW4MY/keISLGkHRmqRgSsVR20mDXHs0g2MifbsAA== X-Migadu-Spam-Score: -11.45 X-Spam-Score: -11.45 X-Migadu-Queue-Id: 5583514947 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DQdbJ5ys; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-TUID: fG/LQMTieYKQ Thomas Ingram writes: > Currently when trying to export an org file with FILETAGS set to > "noexport" (or any value in `org-export-exclude-tags') the file is still > exported with the title and top level text. I propose that be changed > so files with FILETAGS in `org-export-exclude-tags' are completely > skipped by the exporter. > This would be extremely useful in combination with ox-publish, as it > would allow users to easily exclude files from publishing from within > the file. Currently this can only be done by adjusting the ':exclude' > value to match the filename in the `org-publish-project-alist' settings. With current implementation, `org-export-exclude-tags' does not imply that nothing is done during export. Source blocks inside excluded subtrees are still executed, for example. The trees are only removed from the exported Org AST after all the pre-processing is completed, giving user a chance to set noexport tags dynamically. In-buffer export settings are also applied, even when set inside noexport trees. So, producing an output even when everything is excluded is logically expected. At least, in a form of empty export template. That said, I do think that it will make sense to exclude top-level section if #+FILETAGS contain :noexport:. In addition, we can introduce a new export option that will make Org skip exporting empty files (empty after pre-processing). Then, you will be able to get the described publishing behaviour. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at