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 wEI1LO9bbGNj9gAAbAwnHQ (envelope-from ) for ; Thu, 10 Nov 2022 03:03:27 +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 CHxuK+9bbGMLQAEAG6o9tA (envelope-from ) for ; Thu, 10 Nov 2022 03:03:27 +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 80D27B716 for ; Thu, 10 Nov 2022 03:03:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oswtv-0008F6-8t; Wed, 09 Nov 2022 21:02:43 -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 1oswtr-0008Eg-Sc for emacs-orgmode@gnu.org; Wed, 09 Nov 2022 21:02:39 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oswtp-0008In-Ic for emacs-orgmode@gnu.org; Wed, 09 Nov 2022 21:02:39 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E8839240101 for ; Thu, 10 Nov 2022 03:02:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668045753; bh=u7S34p7OCVwXBNUhY+9UYWGdJ7szAPChTaUmN8kzdVI=; h=From:To:Cc:Subject:Date:From; b=ODT3FOtiX2j5dY8BZHxSfhm0QR4ko4QBB8osH/8gCQZF9gHFMXeo6+StiQiENhd0a 4bCpwnpyl1C5v2pnsHI15CHOHZVOofGFF2o37ltgoJv0lZEg+J0M+xdE3em0k9Wy/1 BaYNaHz/Nb/WLbUWGKTOPlBThRIE00XFxHfGVwttDVw4d4eZp2UmK0VKjF4yOwn8mg pliMzKrLyupRlMvNmmsZexIkyiFNCRps2g/TAqz62yURVCLUNl1VylmrlTYHYC5mnJ LXGXI75EPoNYPPx0CDYzPzzvFui5QroWtej4bp3g4UrltB8XiG79lChwC61ydK/7Yx bFWFhBZbY1etg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N74pw25xWz9rxB; Thu, 10 Nov 2022 03:02:31 +0100 (CET) From: Ihor Radchenko To: Alain.Cochard@unistra.fr Cc: Ihor Radchenko , emacs-orgmode@gnu.org Subject: [FR] Allow TITLE to be used as default export file name (was: [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: <25413.33003.166359.259055@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> <87k05i25lq.fsf@localhost> <25413.33003.166359.259055@gargle.gargle.HOWL> Date: Thu, 10 Nov 2022 02:03:13 +0000 Message-ID: <87y1sjk1lq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668045803; 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=kMeUkfawqSSjh/+N4H3qQxrCwPgHw94xlAD6jq42oUQ=; b=m411tI7ngC8YegiWAlRtnyfMtonok4bndGrKhukoftQx78s4nlo7eqkcXo04vK61jAbunT wXOU1kk57W4A3aHJK41mIVR9HLia2uQgOQMK+ER49V3Bx5i1COAorMhjsaVjQKPvklUiTC DUT6j/ZdCl9nWT8k1r4S4CQKvOKFGMFLJpA4A3nClEQP5QA2iMohoAKwYDg9Icf7qmrLOk 9ZzIYdFs3F9q4x+hHuZP141D9AU0US+e2iJm96m/eeVO+NoJt3Mxu0OgMVXqQpqn8Q7Ujv uZ2SULCAhRq2AxXRPUgF+Tfzk+Oqy6XJl1mvJ0/FdyF4gVQ2DfppARrdyWUEeQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668045803; a=rsa-sha256; cv=none; b=IMMoivs3HKkbhPAaL1x225LzDof0zPaxv3xzBp9XKfscaNGo8SvlM54opicJoszwjwocwg wWwDmER/Ye7CrfnldahRbqBE1e1FwTb1ZFjhjTPhf0n2QLvDwDoHdnMYazJ2qHWl0bi5pQ uOsC/X3zzJfOlwBpLnpdLW1Jn55DZgozUPa5sVlHlw3/oFEoVtmxDx53IXlm61Q3ih/dm+ 5HWz1iSIhQAcnqBRrTc4OdbjQVzFHyCuO5LXa9YS18H/dj1G/Xw3t2soFpbyG/Bye5B08g DfN8bdoyukroykFpXDhE+M6AJUURhdr/nvxRqTDYjHR6iz98lU9MLD5gYFBDtQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ODT3FOti; dmarc=pass (policy=none) header.from=posteo.net; 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: -0.20 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ODT3FOti; dmarc=pass (policy=none) header.from=posteo.net; 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: 80D27B716 X-Spam-Score: -0.20 X-Migadu-Scanner: scn1.migadu.com X-TUID: LlZn8TNEXT9l Alain.Cochard@unistra.fr writes: > > I recommend you to use :EXPORT_FILE_NAME: headline property and export > > using subtree scope. > > Thanks a lot for the tip. A suggestion: that the :TITLE: property be > used if it exists. We currently fall back to file name if nothing else works. Using TITLE is possible but cannot be done by default as a fallback --- existing users relying on current behaviour will be affected by such change. We may add a defcustom though. It will be nil by default and setting it to non-nil will make Org export fall back to TITLE rather than file name. However, there is no point adding yet another option if not many users are interested. I am changing the subject of this email to facilitate the feedback. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at