From: Richard Lawrence <rwl@recursewithless.net>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: 74994@debbugs.gnu.org, emacs-devel@gnu.org
Subject: bug#74994: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support)
Date: Sun, 29 Dec 2024 21:53:40 +0100 [thread overview]
Message-ID: <87r05qtdm3.fsf__2393.11397760815$1735505700$gmane$org@recursewithless.net> (raw)
In-Reply-To: <87ttamtf7g.fsf@recursewithless.net>
Richard Lawrence <rwl@recursewithless.net> writes:
> Ihor Radchenko <yantar92@posteo.net> writes:
>
>> In bug#74994, Richard made a decision not to use org-element-ast and
>> instead implement a custom parser generator.
>>
>> Richard, is there any specific reason why you had to make things from
>> scratch? May org-element-ast be changed to fit your needs?
>>
>> If org-element-ast is not going to be useful outside Org mode, I see no
>> good reason to invest time into upstreaming it, after all.
>
> No, it was more that, as things stood, I wanted to wait and see what
> would happen with upstreaming org-element-ast. My idea was to make it
> easy to switch once that happened, but not to wait to make progress in
> the meantime, that's all.
Ah, looking over this again, there was one thing that I felt didn't fit
very well with org-element-ast: in iCalendar, "properties" can have both
a "value" and a list of "parameters". These are different types of
objects and it's most natural and useful not to lump them together, but
in the Org element AST they would probably both just be "contents" of a
property node (i.e., child nodes). Thus, in my draft icalendar-ast.el,
instead of using
(TYPE PROPERTIES CONTENTS)
as the basic representation for a node, I used
(TYPE META VALUE CHILDREN).
The org-element-ast representation is obviously capable of making the
distinction between values and parameters in some other way; but it's
pretty much the only example I can think of where I felt the
org-element-ast representation might not be the best for the needs of
iCalendar.
Best,
Richard
next prev parent reply other threads:[~2024-12-29 20:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87ed4dss2x.fsf@ohm.mail-host-address-is-not-set>
[not found] ` <87mshq9w5c.fsf@ohm.mail-host-address-is-not-set>
[not found] ` <86ed31j6zk.fsf@gnu.org>
[not found] ` <87ldx9vsnb.fsf@localhost>
[not found] ` <868qt8kj6f.fsf@gnu.org>
[not found] ` <87ikscx5io.fsf@localhost>
[not found] ` <867c8skhy6.fsf@gnu.org>
[not found] ` <87frngx4fx.fsf@localhost>
[not found] ` <864j3wkczm.fsf@gnu.org>
[not found] ` <87cyhg0zjz.fsf@localhost>
2024-12-29 20:19 ` bug#74994: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support) Richard Lawrence
[not found] ` <87ttamtf7g.fsf@recursewithless.net>
2024-12-29 20:53 ` Richard Lawrence [this message]
2024-12-30 17:16 ` Ihor Radchenko
[not found] ` <87r05qtdm3.fsf@recursewithless.net>
2024-12-30 17:18 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='87r05qtdm3.fsf__2393.11397760815$1735505700$gmane$org@recursewithless.net' \
--to=rwl@recursewithless.net \
--cc=74994@debbugs.gnu.org \
--cc=emacs-devel@gnu.org \
--cc=yantar92@posteo.net \
/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.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).