From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id INPqOu8F8WYDggAA62LTzQ:P1 (envelope-from ) for ; Mon, 23 Sep 2024 06:08:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id INPqOu8F8WYDggAA62LTzQ (envelope-from ) for ; Mon, 23 Sep 2024 08:08:48 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuxteam.de header.s=mail header.b=IeCpCuAp; 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=1727071727; 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=HqaQe2nopYX20Nx0NiU+HFU2bTIpbdrUv/YSX0kkkhQ=; b=no7DEkA2OBcN7al/4c+Mw9ZN8mLiI0BQeEkS3Af3fUOSdqN9SJ/C0okwukGPpyIBvX3fHo EDijuJuPIouGTHNe4lDzcaYJLd/Pw6m7Q7oc1/aUUoGEzwte/Q4COO2xmrAt5B3tNXjHu+ 9gB1zIxJL9OeiqPiE6OX0HsjLi8ZIkuTvJdm9BGvZ9nvHEQkA3m0Dkd5sABu4bIjfK4V5o I/h5+00wUi8eXYP06C9BGCS6qg827Sm/uZq361zoHpOcNVDq14aRSWZMReuqBT8BSizbMN ggZiIns4JpAyZFoEopWTOCyTgz9ZVDzxuv+2xwtrIF3QiOVASnl/M+rt+RTeoQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuxteam.de header.s=mail header.b=IeCpCuAp; 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=1727071727; a=rsa-sha256; cv=none; b=kShwes0dvmwPokwO6jMXwY6qpuJkJCjKj35Y1eH5z5uZDtSUnQ188JfRzuLvMUx9X4kl5e kHwQpuxTbsO9895jJS9MRNtXFHFAfLWIYlv45rTPQXrIl7N9/tgYGwMU3oYOdgFnfRyqG2 807uxyB2JIyBps6GRqoeYQ7Z4E3+9/k3JsmmlAD96G2QrP7aT3eEdqMyd1QxZ3KpOxDp51 nor0UeTMWyx/WMSGK2d0WVcf9QpvYYK2qzMrdGBfq4RhiAI8GmTv/HgNd92zCE4qcR7KaP ie1JLDM1my+nltqzwUUgk3+/zgve4Kg6RTo5Hk6TdCxY0LDGBWye6r7HRsscsg== 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 CF2C0785FC for ; Mon, 23 Sep 2024 08:08:47 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sscEt-0005Qs-OI; Mon, 23 Sep 2024 02:08:03 -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 1sscEp-0005OZ-KE for emacs-orgmode@gnu.org; Mon, 23 Sep 2024 02:07:59 -0400 Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sscEl-0004So-TP for emacs-orgmode@gnu.org; Mon, 23 Sep 2024 02:07:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=HqaQe2nopYX20Nx0NiU+HFU2bTIpbdrUv/YSX0kkkhQ=; b=IeCpCuApA23vRCGFmIzEPWXhXd zSiGg2+LnASCk4qkgrk+5l8zZKa8efHNb1VEYTHGwUi83KkVePjN4/B4ICkG9eGVfCeDQ3JGkQhrs SfPImveCk/5aXEgaUzkBzZJ0h2qWR7FLi1SnPp2zLDY9bxurfL+OiXjJcY8VL62aqURoEldPNuihX umoDR7SpDI1n3TuFHGFl9YRWUVGB9nfi6PBrLLyWdDyWC7MB2pfOBX+IFBIFtj1bTNRDqDWe790VZ /WNb2Uf4gYQNMyFZ1KQ8SP0RLbVfP7dKkBPbjZlWz2Szhe/k1IXUWtkZhfH4BUzwHwx0AXbek0V6x C2MYazxQ==; Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1sscEf-0006Xl-3t; Mon, 23 Sep 2024 08:07:49 +0200 Date: Mon, 23 Sep 2024 08:07:49 +0200 From: tomas@tuxteam.de To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Differentiating org element properties from built-ins? Message-ID: References: <87cykvpq36.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mlP6dwpUK50gpm2F" Content-Disposition: inline In-Reply-To: <87cykvpq36.fsf@localhost> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.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_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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 X-Migadu-Spam-Score: -4.51 X-Spam-Score: -4.51 X-Migadu-Queue-Id: CF2C0785FC X-Migadu-Scanner: mx10.migadu.com X-TUID: WfNW5PFBcbMw --mlP6dwpUK50gpm2F Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 22, 2024 at 05:15:25PM +0000, Ihor Radchenko wrote: > writes: >=20 > > I do see foo and bar (well, OK, :FOO and :BAR) with their values, but l= ots > > of other (let's call them "built-ins") like :begin and :post-affiliated. > > > > How do I keep those apart? Or do I have to resort to running regexps th= rough > > the buffer? >=20 > (defun org-element-headline-parser (&optional _ raw-secondary-p) > "Parse a headline. >=20 > Return a new syntax node of `headline' type containing `:raw-value', > `:title', `:begin', `:end', `:pre-blank', `:contents-begin' and > `:contents-end', `:level', `:priority', `:tags', `:todo-keyword', > `:todo-type', `:scheduled', `:deadline', `:closed', `:archivedp', > `:commentedp' `:footnote-section-p', `:post-blank' and > `:post-affiliated' properties. >=20 > The plist also contains any property set in the property drawer, > with its name in upper cases and colons added at the > beginning (e.g., `:CUSTOM_ID'). >=20 > So, properties from the property drawer are always upcased. Thanks for that, Ihor I ended up regexping my was through (which brought about some other advantages with it; I'm using those props to communicate with other things outside, and there, keeping the keys's cases is a nice-to-have). Actually, the case treatment of property names is one of the most acute pain points in Org for me, but this ship has sailed :-) Cheers & thanks again for your help. --=20 tom=C3=A1s --mlP6dwpUK50gpm2F Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZvEFrgAKCRAFyCz1etHa RuEfAJ41oTkJezqEK4XNzSeR6YAxow4A3ACfbWCE7MQsL0qr8eHHtc2RN/ufNAU= =JqVT -----END PGP SIGNATURE----- --mlP6dwpUK50gpm2F--