From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QF1aEtP7JmXjLAEAauVa8A:P1 (envelope-from ) for ; Wed, 11 Oct 2023 21:47:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QF1aEtP7JmXjLAEAauVa8A (envelope-from ) for ; Wed, 11 Oct 2023 21:47:31 +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 3FDD544B72 for ; Wed, 11 Oct 2023 21:47:30 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fizz.buzz header.s=fm1 header.b=MEB2kkct; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=SXCI7lSX; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697053651; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=A6IFTF4L/yJV0DVjZ/eWJ5QM2LjnmNUupQ+8qYZZ9zU=; b=TEnhbOwTzd5N9dm4VhzzUITs7tMZoAGIScmKHEneKhtbBByh/QRBEj5CSpxcZCWKT7iDdN R4ClT3agKY04vqjHUexln7P9kysewqtqPVZ+T8cgcxLhWtDJwlZKUv/c+phIvQByIP958R 0a2+SFeOXBH/unsX3WCSPDsSn/5Mc6AIoADJ9KOBkevl5IdP7CSsm6YjM3qy9s6nYv6yjp QJ+Q17z1223PtT8ssDKFSVdBCJLrF2qOJdQtsoKlqGyV5iARNerX6L+9x2go/PGd8GGdI2 hBdWYfMPSEeCBEavWI+K18iedwC/XQxlTN67ZBrlqqCK2RdFGNlf07VtIYF83Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fizz.buzz header.s=fm1 header.b=MEB2kkct; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=SXCI7lSX; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697053651; a=rsa-sha256; cv=none; b=DqJs7QrxSDeMbX9RMSMqrMwyW8kRK3SVPaTiHyG5MUptiNxEOtqqXNbFWEUfiqH84Rmb1g OEan0fRi2UncrpzloHeNxeJGzzWBAkvT3Ik2kU43J9MdJBnt1JbizMXks2ch3a0ommLHRJ kWGdkvobq7Of7ECNkM/8ZYFuXoGXZTOPXA3n7jDc1bsR/gVn4EtyEa8aRrAfl8usS3KdLm iISThbAjwS5xHxsOPn2LGEkK8Wm6Rus7cgRavUz+pHWyvFCM/s0IcBESmzl9E/t2w1ZB8e GvSRYYWbVfwhlKhqc7vfpr6n5doFKGYJjQjRdx17PXnvjLypujCe/Nd4Iq/q+A== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqfAK-00064c-2I; Wed, 11 Oct 2023 15:46:44 -0400 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 1qqfAH-0005g6-H3 for emacs-orgmode@gnu.org; Wed, 11 Oct 2023 15:46:41 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqfAE-0000jA-Bf for emacs-orgmode@gnu.org; Wed, 11 Oct 2023 15:46:41 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id 5F10E320094B for ; Wed, 11 Oct 2023 15:46:35 -0400 (EDT) Received: from imap47 ([10.202.2.97]) by compute7.internal (MEProxy); Wed, 11 Oct 2023 15:46:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fizz.buzz; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1697053594; x=1697139994; bh=A6IFTF4L/yJV0DVjZ/eWJ5QM2 LjnmNUupQ+8qYZZ9zU=; b=MEB2kkctvSMFPglfQ9HQ4Epb1VnLD8hODlLOwimfa 2EjBTCAlS2wso6i6hhcMflnu+8T/ucBPOlXcZBlgrIQGRTlMBVkUaSVbSIp2AbKp 1j/UkpKUO+fasfoyMlwYgtPyR81DosYPQDOq6KQPQax41+apM2gpRVRDdF1laM4+ c+IzSNtJNPsmX1YHMs2gIeEVhM1mFo+CP2VJGKYqDgU2mIUtW/Sem0ZWoAlZTm1B A3mCWxey2mJcaWN9yh5qEo1VsAY09Ki6iJ2RmCgjM41JejDuYVrBxucx/oeCB/xA oviZvmL5k8+rbu7qymsVQzy/4Qevsxh9Ol6O5pRWNQ4Mg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1697053594; x=1697139994; bh=A6IFTF4L/yJV0DVjZ/eWJ5QM2LjnmNUupQ+ 8qYZZ9zU=; b=SXCI7lSX81smuVJyijb80lXF/ib0wGsj23tz9ILlRlobDGG027A fp80UIrjCmaTw5aVg0kf/k+Ffw+20bhISAu/Bn2pgZMfNAQdJAms+hkENx9RZIZH vvzV5xC8mB4QZiJDzLF3jtQ0MeD2TtZldsshXbjFKKmQym6R9QxXVKvZ37Ntvl+C SHLe8y59Sv/KNEt2y5j6O3bk6P6aiPwL0VAhorulfepzNX71leoqtWYGErS7yt5R bUlEMR9slN/gH7hmJNbTjVyu6vBNoMtzhSuH9Y4CuicTaRiCBa0vB5rAtjCQMw4c urvauw5CNJJWhuWjXeEfDRHxzlbQuZNBMpQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrheekgddufeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedfvfhomhcutehlvgigrghnuggvrhdfuceothhomhesfhhiiiii rdgsuhiiiieqnecuggftrfgrthhtvghrnheptdefgeevvdejleejffdvgefghfdvfeeghe dvveegfeeftdelffdujefglefffefgnecuffhomhgrihhnpehorhhgmhhouggvrdhorhhg pdhfihiiiidrsghuiiiinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepthhomhesfhhiiiiirdgsuhiiii X-ME-Proxy: Feedback-ID: i589b4368:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5A367A60079; Wed, 11 Oct 2023 15:46:34 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1019-ged83ad8595-fm-20231002.001-ged83ad85 MIME-Version: 1.0 Message-Id: <0ec8c4ae-4f5b-4e37-8c5c-f92ef497a461@app.fastmail.com> Date: Wed, 11 Oct 2023 15:46:07 -0400 From: "Tom Alexander" To: emacs-orgmode@gnu.org Subject: Document-level properties incorrect and/or missing based on preceding blank lines and/or comments Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.24; envelope-from=tom@fizz.buzz; helo=wout1-smtp.messagingengine.com X-Spam_score_int: 17 X-Spam_score: 1.7 X-Spam_bar: + X-Spam_report: (1.7 / 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, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.999, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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 X-Migadu-Spam-Score: -2.26 X-Spam-Score: -2.26 X-Migadu-Queue-Id: 3FDD544B72 X-Migadu-Scanner: mx2.migadu.com X-TUID: KxYV3aV2Aewq Emacs version: Emacs 29.1 Org-mode version: e1569918cc94253650781e83a09695739c93352f (latest in git) The org-mode syntax document[1] says that property drawers can exist in the zeroth section with the format: ``` BEGINNING-OF-FILE BLANK-LINES COMMENT PROPERTYDRAWER ``` Using this test document: ``` :PROPERTIES: :FOO: bar :END: ``` I correctly get the foo property in the top-level org-data ``` (org-data (:standard-properties [1 1 1 33 33 0 nil org-data nil nil nil 32 33 nil # nil nil nil] :path nil :FOO "bar" :CATEGORY nil) ``` But now there are two separate issues: ### Issue 1 Putting a comment before it makes the value for the foo property incorrect (seems to be grabbing an earlier string slice): ``` # baz :PROPERTIES: :FOO: bar :END: ``` ``` (org-data (:standard-properties [1 1 1 39 39 0 nil org-data nil nil nil 38 39 nil # nil nil nil] :path nil :FOO "O: " :CATEGORY nil) ``` Interestingly, looking farther down the AST, the value for foo is properly set in the node-property, just not the org-data: ``` (node-property (:standard-properties [20 20 nil nil 33 0 nil node-property nil nil nil nil nil nil # nil nil #2] :key "FOO" :value "bar")) ``` ### Issue 2 Putting any blank lines before it makes the foo property not appear in org-data at all ``` :PROPERTIES: :FOO: bar :END: ``` ``` (org-data (:standard-properties [1 1 2 34 34 0 nil org-data nil nil nil 4 34 nil # nil nil nil] :path nil :CATEGORY nil) ``` Looking farther down the AST it seems the property-drawer became a regular drawer [1] https://orgmode.org/worg/org-syntax.html#Property_Drawers -- Tom Alexander pgp: https://fizz.buzz/pgp.asc