From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#74994: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support) Date: Mon, 30 Dec 2024 17:18:01 +0000 Message-ID: <87ed1p2ipi.fsf__36735.4427393124$1735579039$gmane$org@localhost> References: <87ed4dss2x.fsf@ohm.mail-host-address-is-not-set> <87mshq9w5c.fsf@ohm.mail-host-address-is-not-set> <86ed31j6zk.fsf@gnu.org> <87ldx9vsnb.fsf@localhost> <868qt8kj6f.fsf@gnu.org> <87ikscx5io.fsf@localhost> <867c8skhy6.fsf@gnu.org> <87frngx4fx.fsf@localhost> <864j3wkczm.fsf@gnu.org> <87cyhg0zjz.fsf@localhost> <87ttamtf7g.fsf@recursewithless.net> <87r05qtdm3.fsf@recursewithless.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3346"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74994@debbugs.gnu.org, emacs-devel@gnu.org To: Richard Lawrence Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 30 18:17:11 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tSJOB-0000iO-0M for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Dec 2024 18:17:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSJO4-0001LN-Pm; Mon, 30 Dec 2024 12:17:04 -0500 Original-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 1tSJO2-0001KY-5s for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 12:17:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tSJO1-0004GY-U1 for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 12:17:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=tNh5U3hwCuqW0DdV8aKSx7vVUEc+lTB2DThF93URi/8=; b=IB/3jXujPkAWPEmDmmKOlDrfJTF2NBHgpQbw/3eY2lAYon1fhGJYN0ro4h/rQKgTOHQ+jQf8bO6NpKneA5jThWq9uDbLKUQPi0Z3wMbVOKatpAAoRdDYRPa9Vmee1HdY0zXvgIu6PZAt3T41wPmhJhKrdT4n544J1YzntkHejUXEcDUgE3PQPEpZFc60NnTYCcJ8eZMRbQhDpWiBsHca2kZXW0yE4qNEGfiVBFpPqyje13xyQoZe3eV2YnXNIbwSkcO99h7zPueqtO8NO6vhnbw2pgA4rI1ZK5mx7aiqirjgXDvlbUk0WiJ6fFNnNADtbMmDnDZ0O6C9pOUAoQJ6gw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSJO1-0004rZ-OT for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 12:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2024 17:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74994 X-GNU-PR-Package: emacs Original-Received: via spool by 74994-submit@debbugs.gnu.org id=B74994.173557900018658 (code B ref 74994); Mon, 30 Dec 2024 17:17:01 +0000 Original-Received: (at 74994) by debbugs.gnu.org; 30 Dec 2024 17:16:40 +0000 Original-Received: from localhost ([127.0.0.1]:59680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSJNg-0004qs-4i for submit@debbugs.gnu.org; Mon, 30 Dec 2024 12:16:40 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:45893) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSJNd-0004qS-KW for 74994@debbugs.gnu.org; Mon, 30 Dec 2024 12:16:38 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 26BD2240101 for <74994@debbugs.gnu.org>; Mon, 30 Dec 2024 18:16:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735578992; bh=UjEJLoc4FPdTcB82uF9OxX96yEx3VezDW/YiDTDkRPc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=PyyWRK4+E6htqJE7QBA499sq8NB8NJt0vn/+2vR1NHgsHhJfYVvTcAUUUtNCmFY9/ ONGSfpjOwQ19MdXFXF+8k2/9D6H1XyuriJlXB4NomyWRqmYyBFnhxdQ4gm/Z9u1Fzg 131d9ZPhDthBQHYQvOdfRaiaer6kzKfN+983cXaDZBF7077ApV+rmpdKOukKMhwIS0 wFHcJ2v3dM/L4+bbuie7RvuO+0m2PlXp2ellKpSpRxD3WTilzW9+K70VggrLjwRIfn FDe44XkJ/V2bVUHl97ZtKTkPrhYQtMAuGqtSPN8eqhQAURDrhyB9rF6gpm02RqP633 1Df1vub0L2zQQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YMN730Gczz9rxD; Mon, 30 Dec 2024 18:16:30 +0100 (CET) In-Reply-To: <87r05qtdm3.fsf@recursewithless.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298011 Archived-At: Richard Lawrence writes: > 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. Have you looked into secondary nodes? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at