all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bvchgvbt@mail.com
To: orgmode ml <emacs-orgmode@gnu.org>
Subject: Re: Modifying the parse tree
Date: Fri, 26 May 2023 13:27:33 +0200	[thread overview]
Message-ID: <trinity-24ba5f6e-a655-4cc8-963f-90e5ee53d566-1685100453786@3c-app-mailcom-lxa03> (raw)
In-Reply-To: <87o7m8wsxa.fsf@localhost>

> "Ihor Radchenko" wrote:

> >> Which implies that you added invalid headline element to the tree.
> >
> > Hmm. Does
> > headline (:title hello :todo-keyword TODO :todo-type todo)
> > look valid to you as a minimal TODO-type headline? Created via:
> >
> >   (let ((todo (org-element-create 'headline)))
> >     (org-element-put-property todo :title todo-title)
> >     (org-element-put-property todo :todo-keyword "TODO")
> >     (org-element-put-property todo :todo-type "todo"))
>
> Yes, it is invalid.  You must always have :level.

Ah! Thank you! Is there some documentation that explains which properties
each element must have in order to be valid, please?

For example I'm now trying to create a deadline for the heading, and it's
also not working.

> You might try https://github.com/ndwarshuis/org-ml, though I plan some
> breaking changes affecting org-ml soon.

Thanks, I'll look into that. From first glance it looks useful. I'll
probaby continue as I am until I get something that works, and then maybe
refactor to use org-ml.


  reply	other threads:[~2023-05-26 11:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-25 10:22 Modifying the parse tree bvchgvbt
2023-05-25 10:55 ` Ihor Radchenko
2023-05-25 11:15   ` bvchgvbt
2023-05-25 11:29     ` Ihor Radchenko
2023-05-26 11:27       ` bvchgvbt [this message]
2023-05-26 14:35         ` Ihor Radchenko

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-24ba5f6e-a655-4cc8-963f-90e5ee53d566-1685100453786@3c-app-mailcom-lxa03 \
    --to=bvchgvbt@mail.com \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.