From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 QBQWDl0YOWP68gAAbAwnHQ (envelope-from ) for ; Sun, 02 Oct 2022 06:49:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gGE4Dl0YOWO/lwAA9RJhRA (envelope-from ) for ; Sun, 02 Oct 2022 06:49:33 +0200 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 B812A3C848 for ; Sun, 2 Oct 2022 06:49:32 +0200 (CEST) Received: from localhost ([::1]:46740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oequx-0002hy-Of for larch@yhetil.org; Sun, 02 Oct 2022 00:49:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeqtH-0002bE-2a for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 00:48:01 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:35553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeqtD-0001HR-09 for emacs-orgmode@gnu.org; Sun, 02 Oct 2022 00:47:46 -0400 Received: by mail-pl1-x635.google.com with SMTP id h10so4438108plb.2 for ; Sat, 01 Oct 2022 21:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=cnDMJqwTyLEr4SGoqTvWVYsX284KtIHQSmD37QGDtU4=; b=nIRwY3Cdo4ITR+AsNf3Xiqh/+f8YTC1HrfUdh83PzJWiIMFGLCtEyipaotuZqf1BzD vIwdGCk9vCd2VucPuCv96ReQA8KAwCYTOIMTcRW2oZtEa5hBEHDMu1jeCiATi3SE2GOP CKDtiziABgvgxmYfN3QhTxgAycPyAPNA+2bodWvTgTnMIMxcw7djcdmtCp5+bkBDgyV9 F+8tMgn/ob7gNazDBg0NFM4Zyhsa2/5RrV+QPLhwt54L9sW42WmzOALasVwW2Ere83pD YM9D0MxptrKqIYtbNO6feUMAHuEfwB6cPbTN/upAW37w8y4vNHLA185cTbuoWeKxCBeY snTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=cnDMJqwTyLEr4SGoqTvWVYsX284KtIHQSmD37QGDtU4=; b=Bys2QNTzAHk9oqLA5WmUzVDDQPonhIqt+8tm7lgMwYMfuU1qCAmafIyvHE4RCUJFLf Ue2zn/pI5TBugGysRU18113LE8DiboLdJMi7n/3x0fA1NsQ1qXhlwybDKWeMsbH5qIiZ PNNp5eDpXuPcg0ZF1o4B4heVwpxFpk/VwgU5351dkFMzH3j6xyogSlcgcks+Q4ful8PM C3gcUkyEwOzkHXg2nv8GvA/D6dzuUuq4PpNDF2b7A8AXAzh83b/Zpl3909BsouBCHs7k 5v8rDIHAqqujDkkFZhODPq7QvJSBDAAQ1qf4ac5erzN9Hi9ZPjKKrnTXrgCggQr3P80i 4PcQ== X-Gm-Message-State: ACrzQf3GeO5XKBElwaiosgDmexXizkpif3pId7QcM8OzYnzpEsemdR9A jakvYuUo9eWuZJFgvYd6HhDUg78bPFI= X-Google-Smtp-Source: AMsMyM5LPohv9N2hNJEfao0oPdb33wLF13oDAyGd9choOsFNKWHBdgyfmEEvwxl+HdGT5QqF+iw7Kg== X-Received: by 2002:a17:902:ec86:b0:177:f35c:e118 with SMTP id x6-20020a170902ec8600b00177f35ce118mr15896829plg.138.1664686061469; Sat, 01 Oct 2022 21:47:41 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id 74-20020a62154d000000b005544229b992sm4618038pfv.22.2022.10.01.21.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Oct 2022 21:47:40 -0700 (PDT) From: Ihor Radchenko To: alain.cochard@unistra.fr Cc: emacs-orgmode@gnu.org Subject: [BUG] EXPORT_FILE_NAME keyword is used by `org-export-output-file-name' before macro expansion/INCLUDEs/removing COMMENTed trees (was: Confused about what the COMMENT keyword means) In-Reply-To: <25398.44905.256243.690039@gargle.gargle.HOWL> References: <25393.61240.135445.401251@gargle.gargle.HOWL> <87leq5pomk.fsf@localhost> <25394.40867.872373.589874@gargle.gargle.HOWL> <87o7v1nu2e.fsf@localhost> <25398.44905.256243.690039@gargle.gargle.HOWL> Date: Sun, 02 Oct 2022 12:48:33 +0800 Message-ID: <87k05i25lq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=yantar92@gmail.com; helo=mail-pl1-x635.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664686172; 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=cnDMJqwTyLEr4SGoqTvWVYsX284KtIHQSmD37QGDtU4=; b=oyk7CuLse/WbxxSytcLYZ7asqehGQg5zW1Vgn71DOm3DjfrVHyWYXVAyZV7AP7Ym84O1At pg90M/jyJo+NLckYnnAEeGnB60X9hPQvFiqdowDbXFelJmgXAV3SpH2bUtck4NeidF54ts CL54VzoYPeGxAJLA8TOG4KleWgQRbuH/sjQfXXi7Ol2LClVzIVxkPOrqgMk/nIwZOLrmfj FQPSohRbYx8cBOs2oi12fZZ0unl4n21ypAVBOTv2HoYRDlFssC3bySeIKm/ka/R38Pxndy ft5Pk6g7zWZFEzpCHlF2c+SRlgvYii0N7y0X1Qi2XhxNoDF7qwWmXqJbIK2QAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664686172; a=rsa-sha256; cv=none; b=bMP2RDt0vexq3dFv89D9lG2eNyFr9aXv6TNihcvW3oh08lY0tmumskSE8S3+YSPAJqhBHn 51kPl+bOyorvDiE2pmYyRuylqi2hCv3TjAf0l7ge9XPnXBSjy+dJXSY7lCf/GXUAIKvVSP eaKig5d1UaxqD8/u4hB0h4aaBQ3e84Ac5vreO6Zn/YywKI0DwW4N5ptmXCyovyHrr/ToGB VZct0cuYYWUVBN4nnTOlfrpgDxBdngdyqhrQdD9SSLRmGDZIUNnFK18Bhmf5zFdf5bYWE/ CVrzb61fl9vDaaibNTfKcr3UpPSjbqNja3gHAHd2M6wCWiqfn9Gzl9GPOprK5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=nIRwY3Cd; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -1.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=nIRwY3Cd; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: B812A3C848 X-Spam-Score: -1.84 X-Migadu-Scanner: scn1.migadu.com X-TUID: VoLP5GPCIXmz Alain.Cochard@unistra.fr writes: > I can only hope that the "observed inconsistency" related to > EXPORT_FILE_NAME can be resolved. Well. I do consider this a bug. However, it is not easy to fix. `org-export-output-file-name' is used across all ox-*.el backends, including third-party packages, and it is called before we can determine which parts of the exported file are going to be really exported. I recommend you to use :EXPORT_FILE_NAME: headline property and export using subtree scope. > I still feel that section 13.6 of the manual can only been interpreted > as: COMMENTing a tree is equivalent to commenting the tree. I update > my suggestion of addendum to the footnote: > > Note that the subtree is still parsed and '#+KEYWORD: value' pairs > can contribute to calculation of buffer settings, in particular > '#+EXPORT_FILE_NAME: value'. > Incidentally, could you provide another example of a buffer setting > that would be taken into account even in a COMMENTed subtree? (I > tried a few without success.) There should be no other buffer setting that is taken into account in COMMENTed subtrees. EXPORT_FILE_NAME is the only one. I think that we should not really change the manual unless we have to. It will be better to fix the bug instead. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92 Confirmed.