From: Ihor Radchenko <yantar92@posteo.net>
To: tomas@tuxteam.de
Cc: emacs-orgmode@gnu.org
Subject: Re: Differentiating org element properties from built-ins?
Date: Sun, 22 Sep 2024 17:15:25 +0000 [thread overview]
Message-ID: <87cykvpq36.fsf@localhost> (raw)
In-Reply-To: <ZumQnKxyqTafW3/Z@tuxteam.de>
<tomas@tuxteam.de> writes:
> I do see foo and bar (well, OK, :FOO and :BAR) with their values, but lots
> 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 through
> the buffer?
(defun org-element-headline-parser (&optional _ raw-secondary-p)
"Parse a headline.
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.
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').
So, properties from the property drawer are always upcased.
--
Ihor Radchenko // yantar92,
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>
next prev parent reply other threads:[~2024-09-22 17:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-17 14:22 Differentiating org element properties from built-ins? tomas
2024-09-22 17:15 ` Ihor Radchenko [this message]
2024-09-23 6:07 ` tomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cykvpq36.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=tomas@tuxteam.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).