From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eMn1E6DRv2C9AwAAgWs5BA (envelope-from ) for ; Tue, 08 Jun 2021 22:22:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CIxDD6DRv2CEVAAAbx9fmQ (envelope-from ) for ; Tue, 08 Jun 2021 20:22:56 +0000 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 BEA8C1713A for ; Tue, 8 Jun 2021 22:22:55 +0200 (CEST) Received: from localhost ([::1]:46672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqiFR-00063R-Ji for larch@yhetil.org; Tue, 08 Jun 2021 16:22:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqiEy-00063H-Ah for emacs-orgmode@gnu.org; Tue, 08 Jun 2021 16:22:24 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:48461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqiEu-0008Be-Et for emacs-orgmode@gnu.org; Tue, 08 Jun 2021 16:22:22 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 889FD1BF208; Tue, 8 Jun 2021 20:22:17 +0000 (UTC) From: Nicolas Goaziou To: Michael Dauer Subject: Re: BUG: export options properties drawer position and planning dates References: Mail-Followup-To: Michael Dauer , emacs-orgmode@gnu.org Date: Tue, 08 Jun 2021 22:22:16 +0200 In-Reply-To: (Michael Dauer's message of "Tue, 8 Jun 2021 15:17:31 +0200") Message-ID: <87o8cghzt3.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.201; envelope-from=mail@nicolasgoaziou.fr; helo=relay8-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623183775; 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; bh=t7RRp9kF35rK8e1/NHHfqd8WHk1HFePwsW6C/JlkzGI=; b=pqr/n2EDZlcLw3xhLeFuHYxwdBOPbeaMEjacchvOOoZluztKP9tCtl7L7HxrRgvN8tG+un 4lkiSNftrZTeAwpcOcamh+3ik4q4WSV0n3skpOKGIUG/dIdo0iXhA2dCTXD3rzg4yJ2787 NDuDVDFN4oUglge8NhAC0DnD0ywQnVYB3QTdEeimFzulfm7kZQZcEBcWaJZZCE5h+GvBNL 22kZuHR7Lu8uRyHANkqLDXsGl6+5N0FupQ1S7pwx2263CGknx1cri0ymn8qifWHN7NHB8G eBvTRFNHHJrZDgZ/OxtxWJAk+gern6JvPTIMzu39I6ba7FUlMUClpHyuu7071A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623183775; a=rsa-sha256; cv=none; b=pAo+jaSD3XmQK88sKKtPWq9V6SRJRkPM4/1Zog3yFC3lmiIylvlzbD5GmYtj2dhdQFVRQA W0NyQJanC+4diOYPPSF8bKtU7zcrwla6nVimMJwQvJ04Lw+57Mj/PKMiiJwAqfpDdoT6DC 4LyPtNMVJJjM5JzehAqJXZuOxMVc+Eb64x0rvPqlYzQ/9HvvzJnrwBUWdyEP4cwmROjZ7i OMR1SDmIMIp6vk9mvkoXU6ROVN5qEVrSHxDpwa6hfoZhXqbFnZfSV8Tm4yyr87Zgvj2PDN S+0qlBwviXDmtACt9nVgd77hZGf1zo0AxqpV/UHVt6+M03woSq5J7DOk4zhK4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.42 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: BEA8C1713A X-Spam-Score: -2.42 X-Migadu-Scanner: scn1.migadu.com X-TUID: 63Px9IVP/SdB Hello, Michael Dauer writes: > There seems to be a bug in Org mode version 9.4.6 (9.4.6-gcf30f7: > EXPORT_OPTIONS (at least p for with-planning) is only respected if there is > no planning date placed above the properties drawer. > >>>> > * TODO export options > :PROPERTIES: > :EXPORT_OPTIONS: p:nil > :END: > SCHEDULED: <2021-06-08 Di.> > ** TODO l1 > :PROPERTIES: > :EXPORT_OPTIONS: p:t > :END: > SCHEDULED: <2021-06-08 Di.> > *** TODO l2 > SCHEDULED: <2021-06-08 Di.> > **** TODO l3 > :PROPERTIES: > :EXPORT_OPTIONS: p:nil > :END: > SCHEDULED: <2021-06-08 Di.> > ***** TODO l4 > SCHEDULED: <2021-06-08 Di.> > <<< > > produces the somehow expected behavior: >>>> > SCHEDULED: <2021-06-08> > > > TODO l1 > ======= > > SCHEDULED: <2021-06-08> > > > TODO l2 > ~~~~~~~ > > TODO l3 > ------- > > SCHEDULED: <2021-06-08> > > > * TODO l4 > <<< > > But it is syntactically incorrect since the planning dates have to be the > first line below the heading. This is correct, because the SCHEDULED lines are exported as paragraphs, which is what they are. > For the following syntactically correct > snippet the export_options are ignored: >>>> > * TODO export options > SCHEDULED: <2021-06-08 Di.> > :PROPERTIES: > :EXPORT_OPTIONS: p:nil > :END: > ** TODO l1 > SCHEDULED: <2021-06-08 Di.> > :PROPERTIES: > :EXPORT_OPTIONS: p:t > :END: > *** TODO l2 > SCHEDULED: <2021-06-08 Di.> > **** TODO l3 > SCHEDULED: <2021-06-08 Di.> > :PROPERTIES: > :EXPORT_OPTIONS: p:nil > :END: > ***** TODO l4 > SCHEDULED: <2021-06-08 Di.> > <<< >>>> > TODO l1 > ======= > > TODO l2 > ~~~~~~~ > > TODO l3 > ------- > > * TODO l4 > <<< > > Same behavior I see with HTML export. Did you use subtree export? Where was the point when you exported it? For example, if I use a subtree export in the first section above, I get no planning line, you if I subtree-export from the second section, i.e., "l1", all subsequent planning lines appear. IOW, I cannot reproduce your issue. Regards, -- Nicolas Goaziou