emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: <tomas@tuxteam.de>
To: emacs-orgmode@gnu.org
Subject: Differentiating org element properties from built-ins?
Date: Tue, 17 Sep 2024 16:22:20 +0200	[thread overview]
Message-ID: <ZumQnKxyqTafW3/Z@tuxteam.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

Hi, Orgxperts

assume I have something like this:

** Some heading
   :properties:
   :foo: some value for foo
   :bar: some value for bar
   :end:

Now, when I do

  (org-element-properties-mapc
    (lambda (k v) (message "%s -> %s" k v))
    (org-element-at-point))

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?

Cheers & thanks
-- 
tomás

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

             reply	other threads:[~2024-09-17 14:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-17 14:22 tomas [this message]
2024-09-22 17:15 ` Differentiating org element properties from built-ins? Ihor Radchenko
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=ZumQnKxyqTafW3/Z@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=emacs-orgmode@gnu.org \
    /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).